Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
ankit777
Specialist
Specialist

AND OR CONDITIONS


hi All,

I have a table with three columns A,B,C.

There are null values in B and C.

I want to create another table from the above table where either B is null or C is null.

I dont want to include records where both B & C are nul or not null. I want records for which either B is null or c is Null.

Plz Help.

1 Solution

Accepted Solutions
Not applicable

Better way:

Load * where Isnull(B) xor Isnull(C);

View solution in original post

4 Replies
its_anandrjs

Can you provide any sample data.

Not applicable

Please use this

Load * where (Not isnull(B) and IsNull(C)) or (isnull(B) and not isnull(C));

Example attached

Thanks

AJ

Not applicable

Better way:

Load * where Isnull(B) xor Isnull(C);

ankit777
Specialist
Specialist
Author

Thanks Ajay, XOR works perfectly for me. Cheers...!!!