473,473 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

convert rows to columns

Hi i have a table with data like this
f1 f2 f3
1 8 0
2 8 8
3 9 9
4 0 8
5 8 0
6 9 8
7 12 0
8 6 1
9 8 0
10 0 8

how can i convert the data from column to rows

1 2 3 4 5 6 7 8 9 10
8 8 9 0 8....
0 8 8 8 9..
Nov 13 '05 #1
2 13818
You can create a Crosstab query to accomplish this task. The following KB
article has more information.

http://support.microsoft.com/default...b;en-us;304349

--
David Lloyd
MCSD .NET
http://LemingtonConsulting.com

This response is supplied "as is" without any representations or warranties.
"Parintas Themis STE Kardias" <st****@otenet.gr> wrote in message
news:di**********@usenet.otenet.gr...
Hi i have a table with data like this
f1 f2 f3
1 8 0
2 8 8
3 9 9
4 0 8
5 8 0
6 9 8
7 12 0
8 6 1
9 8 0
10 0 8

how can i convert the data from column to rows

1 2 3 4 5 6 7 8 9 10
8 8 9 0 8....
0 8 8 8 9..

Nov 13 '05 #2
Hi:

Try this suggestion from Microsoft. Good luck!

http://support.microsoft.com/default...b;en-us;182822

Alan
"Parintas Themis STE Kardias" <st****@otenet.gr> wrote in message
news:di**********@usenet.otenet.gr...
Hi i have a table with data like this
f1 f2 f3
1 8 0
2 8 8
3 9 9
4 0 8
5 8 0
6 9 8
7 12 0
8 6 1
9 8 0
10 0 8

how can i convert the data from column to rows

1 2 3 4 5 6 7 8 9 10
8 8 9 0 8....
0 8 8 8 9..

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: ambersaria420 | last post by:
Hi All, I need to help with converting rows to columns in SQL2k. Input: Id Name Role 58 Ron Doe Associate 58 Mark Bonas Doctor 59 Mike Johnson Doctor
1
by: blah1234 | last post by:
Is there anyway in DB2 to convert rows to columns? In other words, if I have the following table below... MemberID AccountNum ZipCode ------------------------------------ 1234 1...
0
by: helpful sql | last post by:
Hi all, I am using an HTML table control on my ASP.Net page. Now I need to change this table so that columns become rows and rows become column. Since the table is very complex with many controls...
9
by: dotnetguru | last post by:
Hi SMART GUYS, Please help me write a query. Actually I want to convert my rows into columns. Can anyone kindly give me the query to do it? My rows are about employees. There can be any number of...
1
by: abbaskhan | last post by:
Actually i am working on some reports for that i need my rows to convert into columns. If we can please send me the code
3
by: pushkaraj | last post by:
hi, I have a text file containing 2 rows of data points ....these data points are separated by 4 spaces in between and there are n number of such points where n can be 200-500.....i want a new...
2
by: kirankumarn | last post by:
How to convert rows into different columns Thanks in advance
6
by: viki1967 | last post by:
Hi all. I need your help. I realize this script and I do not know where to begin: 1) A simple grid rows / columns. 2) The first column contain an input type = "checkbox" 3) When select...
3
by: ronakinuk | last post by:
how can i unhide rows/columns in excel 2007
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.