This blog is a depository for things I have found regarding VB.NET and C#.NET development (and other things I may need to remember). This blog is primarily for my own reference, but if the information I found is useful to others, then that is great. If others want to contribute with comments or other information, then that is great too.
Sunday, June 26, 2011
Counting Unique (Distinct) Records with SQL
Using SQL to count all records in a table:
select count(*) from MyTable
Using SQL to count all records in a table with unique/distinct values in a particular attribute:
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.