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 |
|
basicconfiguration
Constraint Violating Yak Guru
358 Posts |
Posted - 2012-09-14 : 14:47:54
|
| How do i get the result:RoseCosmaAlexSunnyLouisWhiteselect profileProperty.value,profileProperty.value.value('(//string/@value)[1]', 'VARCHAR(15)') from @profileProperty profilePropertydeclare @profileProperty table(UserID int, PropertyID int, Value xml)insert @profileProperty (userid, PropertyID, Value)select 3, 2, '<string>Rose</string>' union allselect 3, 3, '<string>Cosma</string>' union allselect 1, 2, '<string>Alex</string>' union allselect 1, 3, '<string>Sunny</string>' union allselect 2, 2, '<string>Louis</string>' union allselect 2, 3, '<string>White</string>' |
|
|
robvolk
Most Valuable Yak
15732 Posts |
Posted - 2012-09-14 : 15:32:14
|
| Dupe: http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=178867 |
 |
|
|
|
|
|
|
|