You can select a date from the deuce and join the results:
select *
from <<your table with startDate and endDate columns>>
, (
select decode( :pValue
, 1, sysdate
, ( select activation_date from account where AcNo = 1234 )
) as calDate
from dual
) c
where c.calDate between startDate and endDate
...
source
share