I'm new to Oacle SQL and I'm trying to get my head around what seems to be something easy...
Say I have a select like so:
select * from MRCONTRACT2
WHERE CASE
WHEN ("MR_CONTRACT2"."TERM_DATE" < sysdate)
THEN 'Lapsed Contract'
WHEN ("MR_CONTRACT2"."EFF_DATE" > sysdate)
THEN 'Inactive Contract'
ELSE 'Active Contract'
END = 'Active Contract'
What does the where clause actually mean, as to me it does not make a full 'if' expression?