This sample illustrates use of SEARCHED CASE construction.
The query retrieves all events and notification whether it had happened already.
select e1."Event_Name",
case
when e1."Event_Date" < now then "In the past"
when e1."Event_Date" > now then "In the future"
else "Right now"
end as "When"
from "events" e1
Download Absolute Database | Learn more |
|
|
Current version: 7.95
Released: February 08, 2023
Price: $ 149
|
|
I don't think I've ever had a better support experience in regard to any of the 3rd party tools we use.
Tim Stickley
|
|
|