views:

502

answers:

1

Hi, how do I write this query in linq (vb.net)?

 select B.Name
 from Company B
 group by B.Name
 having COUNT(1) > 1
+6  A: 

Like that :

from b in db.Company
group b by b.Name into grp
where grp.Count() > 1
select grp.Key
Thomas Levesque