Quote:
Originally Posted by smadala
Thanks for your quick reply saii..appreciated.
you said i need to have 2 IN date parameters..
If suppose my user needs Ranges for some other parameter (like datatype as Number -- ex EmpNo), Then also i have to use 2 IN parameters?
Previously, I generated Reports using simple tables, there i didn't get this problem.Why because, in Crystal Reports 1 option is there"Allow Range values -- True/False".
By setting 'True ', 2 different boxes are displayed (to enter start value and end value).
While coming to stored procedures, by default that option is set to 'False'.
I thought we have to set Range values to true/false while passing parameters only..
Its possible or not i don't know..
i am searching in this way...
Is there any other way for this problem?
Thanks in advance
Well in case of empno, if you dont want to have two INPUT parameters, then you can have one VARCHAR2 parameter which will accept the range value with some delimiter.
For Eg: I pass the value to the input parameter '10-20' which means I want all the employees whose empno is between 10 and 20.
Then you can extract the FROM and TO values using a delimiter.something like:
-
select SUBSTR('10-20',1,INSTR('10-20','-')-1) FROM dual -- This query will give you value 10
-