Hi,
I'm using Oracle Sql 11g to create a stored procedure which I am then using to create a crystal report.
My problem is with passing the Date Parameter through the stored proc. As Oracle wants to treat the date as a datetime, I can't get the parameter to work.
Parameters are declared as:
P_Start_Date and P_End_Date
The Stored proc has
TO_DATE(timestamp1, 'dd/mm/yyyy') between P_Start_Date AND P_End_Date
But it wont work.
Step-by-step Ideas would be appreciated urgently as its an urgent request and I'm only learning Oracle Sql.
PS - As a side, they want it to pass a default parameter value for each date, being a changeable date based on the sys date.
Start Date = 1st of last month.
End Date = Sys Date
Thanks
I'm using Oracle Sql 11g to create a stored procedure which I am then using to create a crystal report.
My problem is with passing the Date Parameter through the stored proc. As Oracle wants to treat the date as a datetime, I can't get the parameter to work.
Parameters are declared as:
P_Start_Date and P_End_Date
The Stored proc has
TO_DATE(timestamp1, 'dd/mm/yyyy') between P_Start_Date AND P_End_Date
But it wont work.
Step-by-step Ideas would be appreciated urgently as its an urgent request and I'm only learning Oracle Sql.
PS - As a side, they want it to pass a default parameter value for each date, being a changeable date based on the sys date.
Start Date = 1st of last month.
End Date = Sys Date
Thanks