I have a datatable with some columns. I need the datatable to return the list as below.
Select col1, distinct count(col2) from table1 group by col1.
list of col1 and count of values of col2
Please let me know how to do this.
Thanks in advance.
I have a datatable with some columns. I need the datatable to return the list as below.
Select col1, distinct count(col2) from table1 group by col1.
list of col1 and count of values of col2
Please let me know how to do this.
Thanks in advance.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Mohan Gopi148 reputationPosted Sep 6, 2013, 10:27 PM EDT
http://stackoverflow.com/questions/7109268/how-to-query-a-datatable-in-memory-to-fill-another-data-table
http://stackoverflow.com/questions/3829129/use-linq-to-group-data-from-datatable
i hope this will help you.
Thank's
Mohan G