Hi @All, I am comparing two columns in saved search like CASE WHEN {parentcustomer.x} != {y} THEN 1 ELSE 0 END and if its 1 i should get a row. But when there is an empty value in x and value present in Y, I am not getting rows. Any idea how to handle empty values? Thanks in advance.
a
aaz
02/13/2020, 10:14 AM
@vilaspadole maybe you could try adding one more condition
aaz
02/13/2020, 10:14 AM
to handle the empty value for x
aaz
02/13/2020, 10:16 AM
not sure if you have to use AND or OR you could relate with your logic
v
vilaspadole
02/13/2020, 10:20 AM
I put concatenate on both values and it worked
👍 1
p
PNJ
02/13/2020, 11:14 AM
For future reference use
IS NULL
s
Sandii
02/13/2020, 1:21 PM
or NVL() to handle a null value and assign it a value