Hi,
I need to create some logic in the WHERE clause based on dates, but I am getting an error.
Here is my logic:
ifthenelse(SQL.POST_DATE > to_date('2014.06.12',yyyy.mm.dd),
SQL.POST_DATE > sysdate( )-45,
SQL.POST_DATE >= to_date('2014.04.12',yyyy.mm.dd) and
SQL.POST_DATE <= to_date('2014.05.12',yyyy.mm.dd))
Error is:
Invalid WHERE clause. Additional information: <Non-comparison expression < ifthenelse(SQL.POST_DATE > to_date('2014.06.12',yyyy.mm.dd),
SQL.POST_DATE > sysdate( )-45,
SQL.POST_DATE >= to_date('2014.04.12',yyyy.mm.dd) and
SQL.POST_DATE <= to_date('2014.05.12',yyyy.mm.dd))
> is not allowed. (BODI-1111313)>. (BODI-1111078)
I'm not sure what is causing the error. Should I be using something other than ifthenelse?