Hi,
If I have the following fields in a table called DailyLeaveLedger
- LeaveDate
- LeaveType
- AmountPaid
How do I write a linq2sql group by query to get this result where it groups by year and Leavetype and gives a column of the count of leave days and the sum of amount paid?? Sorted in descending order of year.
2010 Annual 10 5,000.00
2010 Personal 3 1,500.00
2009 Annual 15 10,000.00
2009 etc