0
I am using select to check if there is SEQ_RESUMO in the table. If there is this returning me the value of SEQ_RESUMO, ate ai ok. But when the value does not exist in the table, according to the select I did, it was to return 0, but it is returning NULL.
SELECT
CASE
WHEN COUNT(1) = 0 THEN 0
WHEN COUNT(1) > 0 THEN SEQ_RESUMO
END AS sequence
FROM INICIO_FIM_COLETA WHERE seq_picking = '244582'
GROUP BY SEQ_RESUMO
Thanks @Raquel Andrade, it worked.
– Guilherme Wayne