SQL COUNT Generator
Build SQL COUNT queries visually. Count all rows, non-NULL values, or distinct values with WHERE, GROUP BY, and HAVING support.
Database
Load an example:
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!
Customer Testimonials
Don't just take our word for it

“I already see the value in it as an early customer and can't wait to try more ways to automate these schema diagrams. They are useful for so many reasons as we are investing more and more in great software architecture”
Arrigo Lupori
Co-Founder & Managing Director
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