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.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Layout crated in SQL

Author  Topic 

werhardt
Constraint Violating Yak Guru

270 Posts

Posted - 2011-10-13 : 10:09:23
Can this type of layout be done in SQL? A Client is requesting it.

Pro Adress
FIRST NAME ADDRESS
LAS NAME ADDRESS2
MIDDLE NDAME CITY
SUFFIX STATE
SSN COUNTY
DEGREE ZIP CODE
NPI ZIP CODE EXT
ADDRESS TERM DATE


The way I have the format now is that the data is just going accross example....

First Name Last Name Suffix SSN DEGREE NPI ADDRESS....etc.

If anyone can give me some kind of guidence that would be great.

Thanks!

Grifter
Constraint Violating Yak Guru

274 Posts

Posted - 2011-10-13 : 11:11:45
Can you make your data requirement a bit more clearer i.e. data you have and data you expect out. If you want to show a table layout use code quotes like so:

column1 column2
======= =======
A B
C D
E F
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-10-13 : 11:15:16
have a look at UNPIVOT operator

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -