I have a LINQ question. Let's say I have a database with the following values:
===================
Date,product,orders
-------------------
1/2/2003,apple,3
1/2/2003,orange,5
1/3/2003,orange,6
1/4/2003,grape,2
===================
How can I use LINQ to get a result that groups the items by date and puts them into a variable that looks like this:
==========================
Date, Apple, Orange, Grape
--------------------------
1/2/2003,3,5,0
1/3/2003,0,6,0
1/3/2003,0 0,2
==========================
Any help would be much appreciated. Thanks!