Hi,
I'm trying to write the following SQL code with lots of problems. Please Help...
Select * from
where
CASE WHEN dte.weekday_no = 2 THEN
dre.l_mod_datetime >= to_char(today-4,"%Y-%m-%d") || ' 18:00'
ELSE
dre.l_mod_datetime >= to_char(today-2,"%Y-%m-%d") || ' 18:00'
END
My criteria should depend on whether today is Monday or not.
Thanks Alot.
Chaim Bochner
I'm trying to write the following SQL code with lots of problems. Please Help...
Select * from
where
CASE WHEN dte.weekday_no = 2 THEN
dre.l_mod_datetime >= to_char(today-4,"%Y-%m-%d") || ' 18:00'
ELSE
dre.l_mod_datetime >= to_char(today-2,"%Y-%m-%d") || ' 18:00'
END
My criteria should depend on whether today is Monday or not.
Thanks Alot.
Chaim Bochner