Get data from sql, Group, and Assign to array - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Get data from sql, Group, and Assign to array

reppelzreppelz PhilippinesPosts: 3Member
Original Query:
Jan-01 |  {"Barako", "Cappuccino", "Latte"}
Jan-02 |  {"Barako", "White Coffee", "3 in 1 Orignal"}


and then I have grouped them and insert into array

- Cappuccino
- Latte
- 3 in 1 Original
- White Coffee
- Barako

{"Cappuccino", "Latte", "3in1Orginial", "WhiteCoffee", "Barako"}


Now I want to re-assign them back to their designated arrays.

ex. 

Jan-01 |  {"Barako", "Cappuccino", "Latte"}
Jan-02 |  {"Barako", "White Coffee", "3 in 1 Orignal"}

**what should I use in my c# class

do i have to foreach them? or what?**

Sign In or Register to comment.