I am having simple query to get all classes which is not 'RS' in hive. My data looks like as follows
Account class
3000337430920208808 NULL
3000337394422514891 NULL
3000337317010916590 NULL
3000337153318453626 NULL
3000337129720896321 NULL
I have written query as
select account_number,service_class from cdx_eligibility where account_number='3000337430920208808' and service_class not in ('RS');
I am not getting output as this account. Ideally NULL <> RS (so its true and should return record). But i am not getting any records. Do we need to handle NULLS in different way? I also tried several options (!=,<>,not in). Please suggest.