473,397 Members | 1,950 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,397 software developers and data experts.

Question about datatables and sql

jm
I have three rows from a mysql database.

id, name, value

It prints three rows in my web form c#.

I want to know how to combine all the results in one row, filtered where needs be.

So, instead of;

1 johnny 5
2 bubba 6
3 jack 7

I want:
id name value
1 johnny, bubbba, jack 5,6,7

thank you for any help.
Nov 18 '05 #1
1 901
jm
jo*************@yahoo.com (jm) wrote in message news:<c6**************************@posting.google. com>...
I have three rows from a mysql database.

id, name, value

It prints three rows in my web form c#.

I want to know how to combine all the results in one row, filtered where needs be.

So, instead of;

1 johnny 5
2 bubba 6
3 jack 7

I want:
id name value
1 johnny, bubbba, jack 5,6,7

thank you for any help.


First, I should have said they all had the same order id, not
different ones like above. But what I ended up doing was loading my
dataset from my database into another datatable (virtual in memory)
after the data was parsed. From there, I attached to a datagrid.
Nov 18 '05 #2

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

Similar topics

1
by: gro.asumsa | last post by:
I have two DataTables in a DataSet. I would like to create a third DataTable in the same DataSet that is a Join of the two original DataTables. The two tables are extracted from two different...
0
by: SStory | last post by:
Not sure where to post this but.... I am making a program and want to expose it using my own Application class... Sort of like Word, etc. The program is an MDI. The primary child forms use...
13
by: Chris | last post by:
Can someone tell me the OOP way to code classes for small tables of data? For example, i'm loading several tables that will be stored in the current.cache of an asp.net app. One table is credit...
3
by: Terry Maguire | last post by:
I am an old VB6 programmer, and we have recently gone to VB.NET. I am struggling to duplicate some of the things I had done in VB5 and VB6 to the new language. What I need to do is to use VB.NET...
3
by: cj | last post by:
I've used datatables and datasets before. Datasets being able to hold more than one table and datatables being only one table. My mind keeps coming up with recordsets. I can't remember how they...
2
by: Asfar | last post by:
Hi, I have a VS2005 windows program written in c#. In this program I have an array list which stores many DataTable's. When I first run the pogram the arraylist is loaded with datatables. At...
3
by: bbdobuddy | last post by:
Hi, I have two datatables that I want to left outer join and then do some queries on but I having a hard time figuring out how to join the datatables together. One of the datatables comes from...
0
by: Analizer1 | last post by:
Hello, c#2 , sqlserver 2005 I am parsing a Text File into 2 Datatables Parent we'll say invoice child well say Invoice Items parent rows 10,000, child rows 30,000 the 2 Tables start out...
5
by: jehugaleahsa | last post by:
Hello: What is the point of using a DataTable in ASP .NET? We are unsure how you can use them without 1) rebuilding them every postback, or 2) taking up precious memory. We are not sure how to...
0
by: StefanPienaar | last post by:
Hi Guys Is there any way in c# (or vb.net) to extract a datatable of data from a dataset with multiple datatables which has relationships set up (containing combined data from the datatables)? ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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...

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.