SQL COUNT Generator
Build SQL COUNT queries visually. Count all rows, non-NULL values, or distinct values with WHERE, GROUP BY, and HAVING support.
Dialect:
Load an example:
Result column name
No WHERE clause - will count all rows in the table
-- Enter a table name
Table name is required
Your data stays private
All SQL generation happens entirely in your browser. Your queries are never sent to any server.
Other Tools
Try our other free tools!
Frequently Asked Questions
Need to visualize your database schema?
ChartDB instantly creates beautiful ERD diagrams from your database. See all your tables and columns at a glance - perfect for writing accurate COUNT queries.
Try ChartDB Free