Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
varunreddy
Creator III
Creator III

Where condition

Hi Guys,

I am trying to obtain the results only when a <> 0 and b<>0.

I am trying this:

select * from table where a<> 0 and b<>0.

This is also eliminating the values where a=0 and b has value and when a has value and b is 0.

Scenario:

a=0 and b=0 -- Should not be displayed

a=0 and b=19 -- should display

a=21 and b=0 -- should dispplay

Thanks in advance.

Cheers,

Varun Reddy

1 Solution

Accepted Solutions
antoniotiman
Master III
Master III

Hi,

try

Where NOT (a=0 and b=0)

Regards,

Antonio

View solution in original post

4 Replies
antoniotiman
Master III
Master III

Hi,

try

Where NOT (a=0 and b=0)

Regards,

Antonio

vinieme12
Champion III
Champion III

You need OR operand


select * from table where a > 0 OR b > 0.

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
vishsaggi
Champion III
Champion III

My be try this

Where (A > 0 OR B > 0)

varunreddy
Creator III
Creator III
Author

Hi All,

Thank you for the quick response.

Cheers,

Varun Reddy