Skip to content
Advertisement

How to cut one row to starttime and endtime to mutiple day spend hour rows

Question:

How to cut one row to starttime and endtime to mutiple day spend hour rows

Table Data and DDL:

Expected Result:

Online Demo Link | DB Fiddle

Advertisement

Answer

You can use connect by level <= syntax combined with case..when statements

Demo

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement