select 'TEM' AS InSituacao
from GTCLogist
where NrPlacaCarreta = ''
and ID <> '35514'
and year(DtBase)=year(GETDATE())
and MONTH(DtBase)=MONTH(GETDATE())
and DAY(DtBase)=DAY(GETDATE())
I have the above SQL, I need when the field is blank, I do not get anything back. I already tried isnull
but since the field is blank and not null
I do not know if I made the correct use.