Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
scgibson
Starting Member
2 Posts |
Posted - 2010-07-19 : 08:29:23
|
| I have the following table of dataID Code Value1 118 G1 198 22 118 12 198 xWhat I need is:ID 118 1981 G 22 1 xBut I cant seem to be able to use PIVOT as it requires an aggregate value but my column is VARCHAR. Any ideas or is PICOT not what I should be using?I am new to SQL so be kind....thanks, |
|
|
sql-programmers
Posting Yak Master
190 Posts |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
scgibson
Starting Member
2 Posts |
Posted - 2010-07-19 : 09:10:30
|
Thanks for the fast response - simple when you know how. Added links to boookmarks. Cheers! |
 |
|
|
|
|
|