Link to home
Start Free TrialLog in
Avatar of ewang1205
ewang1205

asked on

SQL for date time is greater than 9AM today

Need a simple Oracle select to get update_ts is greater than 9AM today.  Please see the pseudo code below.

select * from test where update_ts > 9AM today.  
Avatar of Shaju Kumbalath
Shaju Kumbalath
Flag of India image

select * from test where update_ts >to_date('15-may-2009 9:00','dd-mon-yyyy hh24:mi);
ASKER CERTIFIED SOLUTION
Avatar of Shaju Kumbalath
Shaju Kumbalath
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ewang1205
ewang1205

ASKER

Is there a way to void the hard coded date 15-may-2009 and use sysdate instead?

select * from test where update_ts >
trunc(sysdate)+9/24 ;
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial