SELECT column_name, COUNT(column_name) as RecordCount
FROM table_name
WHERE (whatever criteria)
GROUP BY column_name
ORDER BY column_name
Blogged to help me remember and memorize!
Press the Any key to continue! (Software development and technology)
No comments:
Post a Comment
Hi spammers! No need to waste your time here; comments are heavily moderated, so if you like, you can save us both a little time and just move on to the next site. :-)
For everyone else: Thanks for visiting! Your comments are more than welcome!