I have a table with a NIF field, that field can be null or non-null. I wanted to create a graph where I could show the number of null and non-null elements.
The current consultation is:
SELECT
0 as time,
(
case
when nif = '' then 'Sin identificar'
when nif != '' then 'Identificados'
else nif
end
),
count(nif)
FROM conversations
WHERE $__timeFilter("fecha")
GROUP BY time, nif
ORDER BY 3 desc
But in the case of non-null only in account 1 element, when there are more
