please help me for this query, i have this data
customeid | param
1001 | A
1001 | B
1001 | C
1002 | B
1002 | A
1003 | A
1003 | B
1004 | A
i need to distinct customeid, i use this query but the result not correct
SELECT
COUNT(DISTINCT IF(param not in ('A'),1,0))
FROM
table
the output result
count
3 (from customeid 1001,1002,1003)
how to distinct customeid with if param not in A and ican't add where query