Hello Everyone,I am trying to add rows based on the Start Date/Time and Stop Date/Time into a table but not sure how to do it. Lets say, my original table has the data as follows:CycleID...........CycleCode...........StartDate..........StartTime...........StopDate..........StopTime1................0021.................11/01/2012.........11:21...............11/01/2012........13:112................0021.................11/02/2012.........09:15...............11/04/2012........08:00
As you can see the cycles may start and end on the same day (First row). But they can also go on for days (second row). In my new table, I am trying insert a row for each day that has passed but also adjust the Start/Stop time as follows:CycleID...........CycleCode...........DateOfOvservation......StartDate..........StartTime...........StopDate..........StopTime1................0021.................11/01/2012.............11/01/2012.........11:21...............11/01/2012........13:112................0021.................11/02/2012.............11/02/2012.........09:15...............11/04/2012........23:592................0021.................11/03/2012.............11/02/2012.........00:00...............11/04/2012........23:592................0021.................11/04/2012.............11/02/2012.........00:00...............11/04/2012........08:00
How can I achieve this? Any suggestions and recommendations greatly appreciated.Thanks in Advance.