In BI-PUBLISHER, I have two parameters of STARTDATE
and ENDDATE
.
There is a field in the table ACTIVE_DATE
which would be used in the above parameters.
I am using the following condition in the query:
trunc(active_date) between NVL(:P_Active_Date, trunc(active_date))
and NVL(:P_Close_Date, trunc(active_date)
If both the parameters are null, it should select all ranges of the dates.
But when I apply these parameters, it doesn't show me the correct result. Even when I select both the parameters, it still doesn't show me the correct result.
How should it be done?