Is it possible to change a where clause condition according to a parameter coming into a package.
The problem is that I have a proprietary package that cannot be changed. The package, currently, has a parameter called a_date that will need, eventually, handle a date range.
A date range will be entered via a User interface screen.
The where clause within this package has the following criteria to handle a_date:
AND (tran_date <= TRUNC(a_date) - 60)
but in order to handle the range it needs to be:
AND (tran_date between TRUNC(a_date1)and TRUNC(a_date2) - 60)
Is there some way of manipulating, using Oracle, the dates (from/to) coming from the User Interface to the proprietary package, to get the results I need.
As a reminder I cannot change the propritary package. It is only expecting a date.
Thanks.
getjbb
The problem is that I have a proprietary package that cannot be changed. The package, currently, has a parameter called a_date that will need, eventually, handle a date range.
A date range will be entered via a User interface screen.
The where clause within this package has the following criteria to handle a_date:
AND (tran_date <= TRUNC(a_date) - 60)
but in order to handle the range it needs to be:
AND (tran_date between TRUNC(a_date1)and TRUNC(a_date2) - 60)
Is there some way of manipulating, using Oracle, the dates (from/to) coming from the User Interface to the proprietary package, to get the results I need.
As a reminder I cannot change the propritary package. It is only expecting a date.
Thanks.
getjbb