My user activity log looks something like this:
Id, Username, Date
I need to calculate the total number of entries per day, and most active user of that day for the last 10 days.
//pseudo code
from entry in data.UserLogs
group by entry.Date == each day
select username of most active user, count(Id)
Im new to LINQ and SQL can someone help me complete this query?
I think this is what you are after. Just drop it into LINQPad to see it in action