Date comparison not working with Oracle [message #657166] |
Tue, 01 March 2011 14:09  |
Eclipse User |
|
|
|
I am trying to design a report that will display information generated on a certain date and time. My sql query is as follows,
select * from TABLE where ( TABLE_ATT = 'Minimum Data Value' or
TABLE_ATT = 'Maximum Data Value' or
TABLE_ATT = 'Latency' or
TABLE_ATT= 'Standard Deviation' or
TABLE_ATT = 'Refresh Rate / Coverage Time' or
TABLE_ATT = 'Mean Data Value' )
AND TO_DATE(SCENE_TIME, 'DD-MON-YY HH:MI:SS PM') =
TO_DATE('21-FEB-11 03:45:05 PM', 'DD-MON-YY HH:MI:SS PM')
when I run the query on sqldeveloper the correct results are returned, but when I put this in my data source I get no matches. What could be the problem?
This is my nls session parameters on the Oracle database
DD-MON-RR HH:MI:SS AM
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.13130 seconds