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
 Column to Row

Author  Topic 

anishmm
Starting Member

2 Posts

Posted - 2007-09-18 : 07:53:04
hi

i have one table X
------------------------------------------
A B C D
1 2 3 4
2 3 4 5
3 4 5 6

------------------------------------------

I want the result is
---------------------------------------------
A 1 2 3
B 2 3 4
C 3 4 5
D 4 5 6
---------------------------------------------

How can i get this answer ?

any one know this answer pls send me answer

regars

anish mm

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-09-18 : 08:37:58
1) Are you using SQL Server 2005 or SQL Server 2000?
2) Are there more columns in the table, such as an IDENTITY?



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

anishmm
Starting Member

2 Posts

Posted - 2007-09-18 : 09:01:40
hi
thanks for Replay vary fast

I am using SQL 2000

Table has no DENTITY column

Regards,

Anish mm
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2007-09-18 : 12:05:17
Is this RFW?????

Is ABCD Column Headings or data?



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page
   

- Advertisement -