2
I have the select below, which always brings me two lines, one with zero and the other with value:
SELECT COUNT(DISTINCT ROMANEIO) ROMANEIO FROM PCN_ROMANEIO_DISTR_ITEM WHERE USUARIO = 'junior'
UNION ALL
SELECT COUNT(DISTINCT ROMANEIO) ROMANEIO FROM PCN_ROMANEIO_DISTR_ITEM WHERE USUARIO_EMPILHADEIRA = 'junior'
The result is below:
What you would need is to make it only display the result with a value greater than 0. Only one will have value, always. Any suggestion?
Simple and efficient. Thank you very much!
– Diego