Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Date comparison

379746Mar 10 2010 — edited Mar 11 2010
Hi,
I have a query where I am comparing different date formats in a trigger and sometimes the trigger doesn't fire. The where clause is like this..
 WHERE v_req_date BETWEEN TO_DATE (startdate,'MM-DD-YY') AND to_date (enddate, 'MM-DD-YY')
v_req_date can be of the format MM/DD/YYYY or MM/DD/YYYY HH:MM:SS and startdate and enddata are of the format MM/DD/YYYY.

Why would the trigger not fire at times?
Thanks in advance for your comments.
A/A
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 8 2010
Added on Mar 10 2010
20 comments
1,545 views