I understand that a number of similar questions have been answered, but I think none seems to be specific to this? I might be wrong as I am still quite new to SQL too. Hence, appreciate if anyone can kindly explain and point me the right direction.
A sample table is as shown below, with start and end dates, and one more column with some text details. Some of the end dates are NULL.
Start Date End Date Day
25-05-15 28-05-15 text1
28-05-15 text2
30-05-15 text3
01-12-15 text4
31-05-16 02-06-16 text5
07-07-16 text6
I want to convert this table to a new one just showing all the days while retaining the "Day" column specific to the dates.
Date Day
25-05-15 text1
26-05-15 text1
27-05-15 text1
28-05-15 text1
28-05-15 text2
30-05-15 text3
01-12-15 text4
31-05-16 text5
01-06-16 text5
02-06-16 text5
07-07-16 text6
Can anyone help? Thanks in advance!