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!

select free dates/times from table

Frank LehmannNov 16 2023 — edited Nov 16 2023

Hi,

i have a table with dates and times like this:

Start End ToDo
16.11.2023 10:00 16.11.2023 11:00 Do something

16.11.2023 12:00 16.11.2023 14:00 Do something else

Now from start of the day at 08:00 i want to know, which times are free for a range of 2 hours checking every hour ?

possible result:

16.11.2023 08:00
16:11.2023 15:00
16.11.2023 16:00

or other possible result:

16.11.2023 08:00 free for 2 hours
16.11.2023 09:00 not free for 2 hours
16.11.2023 10:00 not free for 2 hours

This post has been answered by BluShadow on Nov 17 2023
Jump to Answer
Comments
Post Details
Added on Nov 16 2023
12 comments
401 views