Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have two filter some conditions like:
where x='some value' and y='some value' and z=null or z='na'
how to do that ?
IF ((x = 'some value') and (y = 'some value') and (IsNull(z) or (z = 'na')), true-expression, false-expression)
If you are using this conditions in where condition to filter the data then
Load *
From source
Where
x = 'some value' and y = 'some value' and isnull(z) = -1 or z = 'na';
Or in the conition
If( x = 'some value' and y = 'some value' and isnull(z) = -1 or z = 'na',1 ,0 )