StoneCodeMonkey
Well-known member
- Joined
- Apr 17, 2009
- Messages
- 56
- Programming Experience
- 5-10
I have a Sytem.Data.Datatable with the following columns:
DTS Date
AREA String
STATUS String
I would like to use LINQ to summarize the data, for instance the following SQL would produce the result I desire.
SELECT
AREA, STATUS, COUNT(*)
FROM MYTABLE
WHERE DTS BETWEEN '1/JAN/2011'AND '31/JAN/2011'
GROUP BY
AREA, STATUS
ORDER BY AREA, STATUS
Any suggestions would be appreciated.
If there are alternatives to LINQ I would also give that a try.
Regards,
DTS Date
AREA String
STATUS String
I would like to use LINQ to summarize the data, for instance the following SQL would produce the result I desire.
SELECT
AREA, STATUS, COUNT(*)
FROM MYTABLE
WHERE DTS BETWEEN '1/JAN/2011'AND '31/JAN/2011'
GROUP BY
AREA, STATUS
ORDER BY AREA, STATUS
Any suggestions would be appreciated.
If there are alternatives to LINQ I would also give that a try.
Regards,
Last edited: