Sunday, 15 September 2013

How to select count and max using Linq

How to select count and max using Linq

in SQL I have the following statement that instances of errors in log
files. Can someone help me convert this into Linq?
select * from (select distinct bucket, count(bucket) as count,
max(error) as error from logs group by bucket) a order by count desc

No comments:

Post a Comment