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.
select * from test where update_ts > 9AM today.
select * from test where update_ts >to_date('15-may-2009 9:00','dd-mon-yyyy hh24:mi);
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.