I have a snowflake query that has a field called status. The field either contains null or 'deleted'
when I do the following to get only deleted it works:
select * from tbl_1 where status = 'deleted'
when I try excluding all deleted it excludes everything, no records are returned. Here's what I've tried
select * from tbl_1 where status != 'deleted'
select * from tbl_1 where status <> 'deleted'
Neither one works. Can someone tell me why or what's the proper way of doing this in snowflake? Thanks in advance!