How do I pivot this in T-SQL?
Posted
by Matt W
on Stack Overflow
See other posts from Stack Overflow
or by Matt W
Published on 2010-05-28T10:17:42Z
Indexed on
2010/05/28
10:21 UTC
Read the original article
Hit count: 309
How do I get this:
entityid name stringvalue
----------- -------------------- --------------------
1 ShortDescription Coal
1 LongDescription BlackCoal
1 ShortDescription Gold
1 LongDescription WhiteGold
1 ShortDescription Steel
1 LongDescription StainlessSteel
To become this:
entityid ShortDescription LongDescription
----------- -------------------- --------------------
1 Coal BlackCoal
1 Gold WhiteGold
1 Steel StainlessSteel
Many thanks everyone,
Matt.
© Stack Overflow or respective owner