COUNT skips NULL
count(column) counts the rows where the column is not NULL. In the club data, recommended_by is empty for members nobody recommended.
task
How many members were recommended by another member?
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
count(column) counts the rows where the column is not NULL. In the club data, recommended_by is empty for members nobody recommended.
How many members were recommended by another member?