I have a sql table with current value and previous value.
Id Value1 PValue1 Value2 PValue2 1 A A V V1 2 B B1 W W1 3
Finally, and for completeness, there is an UNPIVOT command. However, since you have two columns you want to unpivot, it'd probably be simpler to use one of the other solutions.