So this is what I am trying to do:
select subscriber, count(subscriber)
from subscribers
where subscriber = subscribedTo
group by subscriber
having count(subscriber) > 1
Easy enough in SQL. I can’t figure out how to write this in LINQ. Anyone know how to go about this?
The table is just three cols, ID, subscriber and subscribedTo. I am trying to find duplicate rows where the subscriber == subscribedTo.
You may try this
You may want to check the LINQ Samples in http://msdn.microsoft.com/en-us/vcsharp/aa336746.aspx