Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Timestamp between two times.

benzMar 10 2013 — edited Mar 10 2013
Hi,
I have table
create table t1 (id number,
start_time date,
end_time date);
insert into t1 values (1,to_date('06:30','hh24:mi'),to_date('14:00','hh24:mi'));
insert into t1 values (2,to_date('14:30','hh24:mi'),to_date('22:00','hh24:mi'));
insert into t1 values (3,to_date('22:30','hh24:mi'),to_date('06:00','hh24:mi'));

select * from t1;
id         start_time       end_time
1           06:30               14:00
2           14:30               22:00
3           22:30               06:30
I need to find the record where 05:00 hr exists.

Thanks

Edited by: benz on Mar 9, 2013 10:12 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 7 2013
Added on Mar 10 2013
15 comments
13,246 views