AltQuery
Initializing SQL database...
Back to Questions

Calculate Count #36

easy

Calculate the count using COUNT(*). COUNT() returns the number of rows. Use COUNT(*) to count all rows, or COUNT(column_name) to count non-NULL values in a specific column.

Practice with:

Database Schema

products

Product information

idnamevalue

Expected Output

Click "Show" to see what the correct output should look like.Tip: Try solving it yourself first for better learning!

SQL Editor

Loading...

Start typing for autocomplete

AI Help

Ask for help!