|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Query by date
Hi all,
Is there a way to query an oracle database in an automated fashion by a timestamp field based on current timestamp, like: 04/29/08 00:00:00 - 72 hours? :-) |
|
#2
|
||||
|
||||
|
yep, the simpliest (since your number of hours is 3 days) is:
select date from table where date > sysdate - 3;
__________________
The liver is evil and must be punished! |
|
#3
|
|||
|
|||
|
Awesome! Thank you!
I'm not finding too many online syntax guides for oracle, and I'm getting stumped on things. |
|
#4
|
|||
|
|||
|
__________________
|
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > Query by date |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|