473,396 Members | 2,003 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

96 rows of data into a table

I have a select that will return 96 rows of data.

Data looks like:

A1
A2
...
A12
B1
...
B12
....
....
H12

I need to put this in a table like

A1 A2 A3 .... A12
B1
.................................
..................................
H1 H2 H3 .... H12

Getrows doesn't work since it thinks these are 96 rows instead of 96 pieces
of data in 8 rows

My brain doesn't seem to be clicking this morning. Anything simple I am
missing?

Mike
Jul 19 '05 #1
2 1198
If there are always 12 columns, you could adjust this script:
http://www.aspfaq.com/2247

Or maybe you are looking for a crosstab:
http://www.aspfaq.com/2462


"Mike" <Mi**@nospam.com> wrote in message
news:eJ**************@TK2MSFTNGP12.phx.gbl...
I have a select that will return 96 rows of data.

Data looks like:

A1
A2
..
A12
B1
..
B12
...
...
H12

I need to put this in a table like

A1 A2 A3 .... A12
B1
................................
.................................
H1 H2 H3 .... H12

Getrows doesn't work since it thinks these are 96 rows instead of 96 pieces of data in 8 rows

My brain doesn't seem to be clicking this morning. Anything simple I am
missing?

Mike

Jul 19 '05 #2
Thanks Aaron. The first should work.

Mike

"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:OZ**************@tk2msftngp13.phx.gbl...
If there are always 12 columns, you could adjust this script:
http://www.aspfaq.com/2247

Or maybe you are looking for a crosstab:
http://www.aspfaq.com/2462


"Mike" <Mi**@nospam.com> wrote in message
news:eJ**************@TK2MSFTNGP12.phx.gbl...
I have a select that will return 96 rows of data.

Data looks like:

A1
A2
..
A12
B1
..
B12
...
...
H12

I need to put this in a table like

A1 A2 A3 .... A12
B1
................................
.................................
H1 H2 H3 .... H12

Getrows doesn't work since it thinks these are 96 rows instead of 96

pieces
of data in 8 rows

My brain doesn't seem to be clicking this morning. Anything simple I am
missing?

Mike


Jul 19 '05 #3

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

Similar topics

7
by: robert | last post by:
running 8.1.7 server, 8.1.6 client. i *thought* inner join should not return nulls, but not only that, but i get way more rows than i'm expecting. assume: order table: order_number
9
by: Rowland Hills | last post by:
I have a table which is returning inconsistent results when I query it! In query analyzer: If I do "SELECT * FROM TABLE_NAME" I get no rows returned. If I do "SELECT COL1, COL2 FROM...
3
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that...
3
by: Bijoy Naick | last post by:
I have something strange going on.. My .aspx page contains a file upload control, a "Import Data" button, a "newTransactions" <asp:table>, a"SaveTrans" button and an confMsg label. First the...
31
by: One Handed Man \( OHM - Terry Burns \) | last post by:
My Brain is dead !!!!! I modify a single row in a DataTable By setting the FirstName column in a specific row to another name. ( Without Accepting Changes ). However, this statement still...
9
by: Dejan | last post by:
Hy, Sorry for my terreble english I have this simple code for deleting rows in mysql table... Everything works fine with it. So, what do i wanna do...: my sql table looks something like...
4
by: Andre | last post by:
I am ruinning this in the global.asa VIA Visual Studio VB .NET (framework 1.1) I have a access database with a table called tblCounters with a feild called Counters with on row of data in it...
2
by: Muzzy | last post by:
Hi, I've used information on these newsgroups to build many pages. So I thought that now that I have my script working (something that I've been working on for about a week), I should post it so...
7
by: Susan Mackay | last post by:
I have a data table that is connected to a database table with a data adapter in the 'standard' manner. However I want to be able to remove selected rows from the data table (i.e. no longer...
3
by: Michel Esber | last post by:
Hello, Environment: DB2 LUW v8 FP15 / Linux I have a table with 50+ Million rows. The table structure is basically (ID - Timestamp). I have two main applications - one inserting rows, and the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
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...

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.