I have a table like this:
ID | Date 1 | Date 2 | Date 3
1 | 2014-08-01 | 2014-08-02 | 2014-08-03
And I need to output it like this:
ID | Date Field Name | Date Value
1 | Date 1 | 2014-08-01
1 | Date 2 | 2014-08-02
1 | Date 3 | 2014-08-03
Have tried dynamic unpivoting with unions but seems messy. Is there a best practice way of doing this?