Learn VisualLearn SQL Visual
JA

Calculate One Value from Many Rows

Aggregate functions fold multiple rows into one value. COUNT returns a count, SUM a total, AVG an average, and MIN and MAX the smallest and largest values. COUNT(*) counts all rows, while COUNT(column) skips NULLs.

What is the difference between COUNT(*) and COUNT(city) for customers?