Please tell me how to use a calculated column in where condition in oracle 9i?
I want to use something like
select decode (:pValue,1,
select sysdate from dual,
select activation_date from account where AcNo = 1234) as calDate
where caldate between startDate and endDate;