I am hoping to get some help to write some SQL that I have had no success writing myself.
I have a table with the data:
ID StartDate EndDate 1 01/01/2000 04:30 PM 01/03/2000 06:15 AM 2 01/04/2000 08:10 AM 01/04/2000 07:25 AM 3 01/05/2000 11:00 AM 01/06/2000 03:45 AM
I need to get the following:
ID StartDate EndDate 1 01/01/2000 04:30 PM 01/01/2000 11:59 PM 1 01/02/2000 12:00 AM 01/02/2000 11:59 PM 1 01/03/2000 12:00 AM 01/03/2000 06:15 AM 2 01/04/2000 08:10 AM 01/04/2000 07:25 AM 3 01/05/2000 11:00 AM 01/05/2000 11:59 PM 3 01/06/2000 12:00 AM 01/06/2000 03:45 AM
In other words, split up date ranges by day. Is this even possible in SQL?
My database is Oracle 11G R2 and I am afraid due to circumstances I cannot use PL/SQL.