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 |
|
ammarfassy
Starting Member
1 Post |
Posted - 2009-12-01 : 11:18:50
|
| Dear ALL,I have a table named FIELDS with field names (ID, FieldName)with the data is as follow :ID FieldName1 FullName2 Address3 City4 CountryI need to display these values in column wise. for ex :FullName Address City CountryRavi aaaaa aaa aaAndy bbbbb bbb bbApollo ccccc ccc ccthanks in advance,Ammar. |
|
|
RyanRandall
Master Smack Fu Yak Hacker
1074 Posts |
Posted - 2009-12-02 : 11:34:41
|
| Hi AmmarThere's a query at the end of this article that shows you how to query tables like this.[url]http://tonyandrews.blogspot.com/2004/10/otlt-and-eav-two-big-design-mistakes.html[/url]Note that the article is called 'OTLT and EAV: the two big design mistakes all beginners make', and I recommend you read the whole lot and consider whether your current design is really what you want before you start writing too many queries against it.Ryan Randall Solutions are easy. Understanding the problem, now, that's the hard part. |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2009-12-03 : 03:25:48
|
| This may involve in dynamic sqlMake sure you read this fullywww.sommarskog.se/dynamic_sql.htmlMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|