Greetings,
Using APEX 5.1
New with SQL statements, Trying to have a column for messages to see when a card is expired based on a date comparison
Basically, is the system date is GREATER than the access card expiry date (access_card_exp_date) + 30 days then message in a column (virtual) - message states "Expired"
OR when system date is LESS than the access card expiry date (access_card_exp_date) + 30 days then message in a column (virtual) - message states "OK"
Else no message
Here is my attempt. Maybe a CASE statement isn't even the way to go...
CASE access_card_exp_date WHEN (SYSDATE > access_card_exp_date + 30) THEN 'Expired'
WHEN (SYSDATE < access_card_exp_date + 30) THEN 'OK'
ELSE Null as message
END
Thanks,
K