I'm using the below statement find the whether ORG station is ours or DST station is ours. If i get ORG then it will be 1 if DST then 2 else null
WHEN STATION_CODE =@ORG THEN '1'
WHEN STATION_CODE =@DST THEN '2'
ELSE NULL END STATUS
WHERE (STATION_CODE =@ORG OR STATION_CODE =@DST)
AND COUNTRY_CODE ='IN'
but some times i may pass empty string to this query.. when i pass empty string it is not returning as null.. instead its not returning anything. but i want as NULL value. please help me to get this done.
Table M_COUNTRY_CODE_MATRIX data will be as below for country_code 'IN'