CharlieMike73
Programmer
Hi, I have a ASP Page that connects to an Oracle 8i instance and i need to limit the select to a date range.
I have tried using the following as advised by oracle text books with no joy...
WHERE DWR_DATE BETWEEN TO_DATE('01-JUL-02','DD-MON-YY') and TO_DATE('17-JUL-02','DD-MON-YY')
Where you see the dates 01-JUL-02 and 17-JUL-02 I need these to be dynamic and that too is causing a problem.
Do i add <%= startDate %> and <%= endDate %> within the query, or get everything from the table/s and then trim the results, because this would take a large amount of time as we are well on our way to a million records.
I have tried using the following as advised by oracle text books with no joy...
WHERE DWR_DATE BETWEEN TO_DATE('01-JUL-02','DD-MON-YY') and TO_DATE('17-JUL-02','DD-MON-YY')
Where you see the dates 01-JUL-02 and 17-JUL-02 I need these to be dynamic and that too is causing a problem.
Do i add <%= startDate %> and <%= endDate %> within the query, or get everything from the table/s and then trim the results, because this would take a large amount of time as we are well on our way to a million records.