select
distinct ca.CASE_KEY,
ca.priority,
ca.lock_flag,
ca.alternate_case_id as ALTERNATIVE_CASE_ID,
ca.case_identifier as case_identifier
from cases ca
The above query returns alternate_case_id as ‘null’ because there is a string ‘null’ in db.
the client wants to see nothing if it is null. How can I use sql case along with Trim so that this bug will work for data like ‘ null’. Please help.
Not sure if the string was actually
NULL, or contained the text'null'… so I handled both cases…