Hi there is a table
id ib it NULL NULL NULL NULL NULL NULL NULL NULL NULL 1 1 2 2 3 2 2 4 2 3 NULL 5 2 NULL 5 2 4 6 2 1 6 Request
SELECT COUNT(*), COUNT(ib), COUNT(DISTINCT ib) FROM tbl returns 10 7 3
The number 10 is the number of records in the table.
The number 3 is the number of unique entries in the column, discarding NULL
And where does 7 come from?
How to get the number of records in the table except for the sample where all 3 values are NULL ?