Im cercando di ottenere questo risultato:Mysql - Il conteggio NULL restituisce sempre 0?
NULL 350
google 98
yahoo 5
bing 4
Con questa interrogazione:
SELECT engine, COUNT(engine) AS count
FROM visits
GROUP BY engine
ORDER BY count DESC
ma restituisce:
google 98
yahoo 5
bing 4
NULL 0
come posso risolvere questo problema?
'COUNT (*)' o 'COUNT (1)' o 'COUNT (aNotNullableColumn)' funzionerà. –