In SQL Server 2008, I have a table that contains 4 columns:
Item_Code, Length, Width, Height
I need to transform this table to a format where the length is the max dimension of the three, width is the second, and height is the third.
For example:
Item_Code | Length | Width | Height
----------+--------+-------+-------
123445 | 42.50 | 52.63 | 82.00
Should transform to
Item_Code | Length | Width | Height
----------+--------+-------+-------
123445 | 82.00 | 52.63 | 42.50
Can someone help me with this? Is this possible in SQL Server 2008?