select date values from a table between two dates (merged) [message #443496] |
Tue, 16 February 2010 01:31 |
aijaz786
Messages: 91 Registered: February 2010
|
Member |
|
|
Oracle 10g
In a table I have a column update_date and its type is DATE. Sample values from this column are as follows. I am using the following query to select all update_date lie between sysdate and sysdate-90.
select update_date from table1
where update_date between sysdate and sysdate-90
The above query retrun no data even data is there in the table for this range. Please advise what to do?
Update_date
11-FEB-10
08-FEB-10
08-FEB-10
08-FEB-10
08-FEB-10
08-FEB-10
08-FEB-10
08-FEB-10
07-FEB-10
04-FEB-10
04-FEB-10
04-FEB-10
04-FEB-10
03-FEB-10
03-FEB-10
[Edit MC: Remove useless hundred lines of dates]
[Updated on: Tue, 16 February 2010 01:48] by Moderator Report message to a moderator
|
|
|
|
|
|
|
|
|
|