473,511 Members | 15,852 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

combine 2 rows into 1

Is it possible to create 2 rows of output from SQL into 1 row for display
purposes?

My output looks like this

row1 1 2 3
row2 4 5 6
is it possible to combine them into 1 row so it looks like this

row1 1 2 3 row2 4 5
6

Feb 18 '08 #1
7 1102
On Feb 18, 9:44 am, "Dave" <D...@ihatepsam.comwrote:
Is it possible to create 2 rows of output from SQL into 1 row for display
purposes?

My output looks like this

row1 1 2 3
row2 4 5 6

is it possible to combine them into 1 row so it looks like this

row1 1 2 3 row2 4 5
6
But, you should handle the display layout in the presentation layer.
Feb 18 '08 #2
how coud I handle this on the presentation layer?

"gnewsgroup" <gn********@gmail.comwrote in message
news:a7**********************************@s37g2000 prg.googlegroups.com...
On Feb 18, 9:44 am, "Dave" <D...@ihatepsam.comwrote:
>Is it possible to create 2 rows of output from SQL into 1 row for display
purposes?

My output looks like this

row1 1 2 3
row2 4 5 6

is it possible to combine them into 1 row so it looks like this

row1 1 2 3 row2 4 5
6

But, you should handle the display layout in the presentation layer.

Feb 18 '08 #3
On Feb 18, 9:57 am, "Dave" <D...@ihatepsam.comwrote:
how coud I handle this on the presentation layer?

"gnewsgroup" <gnewsgr...@gmail.comwrote in message

news:a7**********************************@s37g2000 prg.googlegroups.com...
On Feb 18, 9:44 am, "Dave" <D...@ihatepsam.comwrote:
Is it possible to create 2 rows of output from SQL into 1 row for display
purposes?
My output looks like this
row1 1 2 3
row2 4 5 6
is it possible to combine them into 1 row so it looks like this
row1 1 2 3 row2 4 5
6
But, you should handle the display layout in the presentation layer.
It depends on what control you use. Or you can simply output the HTML
elements of a table.
Feb 18 '08 #4
I'm new to this .NET thing so I'm not sure what controls would work for
this.
do you have an example of something that could show this format?

"gnewsgroup" <gn********@gmail.comwrote in message
news:79**********************************@u10g2000 prn.googlegroups.com...
On Feb 18, 9:57 am, "Dave" <D...@ihatepsam.comwrote:
>how coud I handle this on the presentation layer?

"gnewsgroup" <gnewsgr...@gmail.comwrote in message

news:a7**********************************@s37g200 0prg.googlegroups.com...
On Feb 18, 9:44 am, "Dave" <D...@ihatepsam.comwrote:
Is it possible to create 2 rows of output from SQL into 1 row for
display
purposes?
>My output looks like this
>row1 1 2 3
row2 4 5 6
>is it possible to combine them into 1 row so it looks like this
>row1 1 2 3 row2 4
5
6
But, you should handle the display layout in the presentation layer.

It depends on what control you use. Or you can simply output the HTML
elements of a table.

Feb 18 '08 #5
On Feb 18, 10:09 am, "Dave" <D...@ihatepsam.comwrote:
I'm new to this .NET thing so I'm not sure what controls would work for
this.
do you have an example of something that could show this format?

"gnewsgroup" <gnewsgr...@gmail.comwrote in message

news:79**********************************@u10g2000 prn.googlegroups.com...
On Feb 18, 9:57 am, "Dave" <D...@ihatepsam.comwrote:
how coud I handle this on the presentation layer?
"gnewsgroup" <gnewsgr...@gmail.comwrote in message
>news:a7**********************************@s37g200 0prg.googlegroups.com...
On Feb 18, 9:44 am, "Dave" <D...@ihatepsam.comwrote:
Is it possible to create 2 rows of output from SQL into 1 row for
display
purposes?
My output looks like this
row1 1 2 3
row2 4 5 6
is it possible to combine them into 1 row so it looks like this
row1 1 2 3 row2 4
5
6
But, you should handle the display layout in the presentation layer.
It depends on what control you use. Or you can simply output the HTML
elements of a table.
You may wanna try the Table control. There are many examples on the
web. One of them is here:

http://samples.gotdotnet.com/quickst...doc_table.aspx
Feb 18 '08 #6
Consider using a DataList control that is capable of rendering several items
in a row.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Dave" <Da**@ihatepsam.comwrote in message
news:ek**************@TK2MSFTNGP04.phx.gbl...
Is it possible to create 2 rows of output from SQL into 1 row for display
purposes?

My output looks like this

row1 1 2 3
row2 4 5 6
is it possible to combine them into 1 row so it looks like this

row1 1 2 3 row2 4 5 6

Feb 18 '08 #7
I got it working actually with using a gridview.
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:uX**************@TK2MSFTNGP06.phx.gbl...
Consider using a DataList control that is capable of rendering several
items in a row.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Dave" <Da**@ihatepsam.comwrote in message
news:ek**************@TK2MSFTNGP04.phx.gbl...
>Is it possible to create 2 rows of output from SQL into 1 row for display
purposes?

My output looks like this

row1 1 2 3
row2 4 5 6
is it possible to combine them into 1 row so it looks like this

row1 1 2 3 row2 4 5
6


Feb 18 '08 #8

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

Similar topics

1
9714
by: Valerie | last post by:
Hi everyone, I really appreciate if anyone could help me with this tricky problem that I'm having. I'm looking for a sample script to combine data in multiple rows into one row. I'm using...
2
6098
by: laurenq uantrell | last post by:
IS there a way to combine all matching rows in a table so that it outputs as one row, for example: tblMyStuff UniqueID int IDENTITY ParentID int SomeSuch nvarchar(50) SomeSuch2 nvarchar(50) ...
14
2393
by: imani_technology_spam | last post by:
I have the following table; CREATE TABLE ( IDENTITY (1, 1) NOT NULL , (7200) COLLATE SQL_Latin1_General_Pref_CP1_CI_AS NOT NULL , CONSTRAINT PRIMARY KEY CLUSTERED ( ,
5
2986
by: jhutchings | last post by:
Hello everyone, I have a database where I collect shipment data from various tables. However, I have a problem. Whenever I want to see shipping data for orders that were set to ship on or before...
4
5734
by: Jason Gyetko | last post by:
Is there any way to combine these two queries into one? I have tables Item_Master & Kit_Master which are the source tables. Query 2 is using both Item_Master (table) & qryKit1 (query) &...
8
6904
by: cycleops | last post by:
Can anyone please help? I'm trying to combine 2 or more similar rows into one row, accumulating a field for quantity. E.g.: index, field1, field2, quantity 1, ccc, bbb, 5 2, ...
1
2618
by: ktang3227 | last post by:
Hi all, I have a table which list all the different product# and quantity of the product in each row. But for some reason, some of the product splites into 2 rows. For example; Product A has...
0
836
by: ajitha123 | last post by:
I've 2 rows similar with only 1 or 2 columns different. now i need to combine these two rows in the excel sheet with comma separating that two column plz help me
2
5702
denny1824
by: denny1824 | last post by:
Hi everyone, Here is my problem. I have a Table Variable (I could easily turn it into a Temp Table instead) that will sometimes have rows that are identical except for one specific column. The...
4
5258
by: IT Couple | last post by:
Hi I'm pretty new to SSIS and I wonder if you could help me. I download HTML files (thounsands) as text files using SSIS and then using foreach loop I load each file into table text data type...
0
7138
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...
1
7075
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
5662
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5063
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
4737
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
3222
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3212
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1572
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
446
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.