I have a table called Dateinfo and the data looks like below:
Cntr_Date Appv_Date Prop_Date ID Lvl
------------------------------------------------
2014-04-11 2014-03-21 2014-07-29 4867 1
2014-04-21 2014-04-29 2014-04-21 4867 1a
I want my output to look like this:
ID Lvl DT_Type Dates_Hist
---------------------------------------
4867 1 Cntr 2014-04-11
4867 1 Appv 2014-03-21
4867 1 Prop 2014-07-29
4867 1a Cntr 2014-04-21
4867 1a Appv 2014-04-29
4867 1a Prop 2014-04-21