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

DataSet Table Join

Can I Join two Data Table in Data set ??
Is it using the DataSet.Merge ?

Any example ?
Mar 7 '06 #1
3 7084
Hello Dragon,

Sample is in MSDN http://msdn.microsoft.com/library/de...ergetopic3.asp

D> Can I Join two Data Table in Data set ??
D> Is it using the DataSet.Merge ?
D> Any example ?
D>
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Mar 7 '06 #2
The Examples seems to be adding row below the table

Actually I want Employee Table join with Employee Order Table in Dataset.
Say EmployeeTable
ID Name
1 ABC
2 CDE
EmployeeOrder Table
ID ItemNo
1 101
1 102
2 103

I want a returen Dataset like this:
ID Name ItemNo
1 ABC 101
1 ABC 102
2 CDE 103

Thx.
"Michael Nemtsev" <ne*****@msn.com> wrote in message
news:9c**************************@msnews.microsoft .com...
Hello Dragon,

Sample is in MSDN
http://msdn.microsoft.com/library/de...ergetopic3.asp

D> Can I Join two Data Table in Data set ??
D> Is it using the DataSet.Merge ?
D> Any example ?
D> ---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do
not cease to be insipid." (c) Friedrich Nietzsche

Mar 7 '06 #3
Hello Dragon,

For that way iterate DataRows manually and add new column with items to the
destination dataTable

D> The Examples seems to be adding row below the table
D>
D> Actually I want Employee Table join with Employee Order Table in
D> Dataset.
D> Say EmployeeTable
D> ID Name
D> 1 ABC
D> 2 CDE
D> EmployeeOrder Table
D> ID ItemNo
D> 1 101
D> 1 102
D> 2 103
D> I want a returen Dataset like this:
D> ID Name ItemNo
D> 1 ABC 101
D> 1 ABC 102
D> 2 CDE 103
D> Thx.
D>
D> "Michael Nemtsev" <ne*****@msn.com> wrote in message
D> news:9c**************************@msnews.microsoft .com...
D>
Hello Dragon,

Sample is in MSDN
http://msdn.microsoft.com/library/de...ary/en-us/cpre
f/html/frlrfsystemdatadatasetclassmergetopic3.asp

D> Can I Join two Data Table in Data set ??
D> Is it using the DataSet.Merge ?
D> Any example ?
D> ---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents
do not cease to be insipid." (c) Friedrich Nietzsche

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Mar 7 '06 #4

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

Similar topics

1
by: Steve | last post by:
C# I have a DataSet defined in my project that consists of one main table and 3 child tables. I have a SQL statement that can retrieve all the information for this structure, but how do I...
2
by: Bennett Haselton | last post by:
I know how to create a DataAdapter that loads data from a data source into a table in a typed DataSet, and how to set the DataSource and DataMember properties of a DataGrid so that at run time it...
1
by: cindy | last post by:
Get data into datatable, add to dataset dsSearch " Get data into datatable, add to dataset dsSearch Using In-Memory SQL Engine join the tables and select the filenames from the join, add to...
1
by: RJN | last post by:
Hi Need a help on data set. I have a .csv file as an input which I read using the oledb provider and upload into a dataset using a dataadapter. So the dataset has one datatable now. Using this...
16
by: Geoff Jones | last post by:
Hi Can anybody help me with the following, hopefully simple, question? I have a table which I've connected to a dataset. I wish to add a new column to the beginning of the table and to fill...
5
by: Jean Christophe Avard | last post by:
Hi! I have a query that INNER JOIN's three other tables. All the relation are 1 to 1, except for one, where an Item can have more than one price. I have this query that work fine in MSDE Query...
3
by: Marc Llenas | last post by:
Hello all, I'm new to ASP.NET and I have a question regarding the fill method of a dataset. Here is my code 1 Dim objConn As OleDbConnection 2 Dim objAdapt As OleDbDataAdapter 3 Dim...
0
by: =?Utf-8?B?UHVjY2E=?= | last post by:
Hi, I'm using vs2005 and .net 2.0. I have used 2 DirectorySearchers to retrieve Active Directory data and put them into 2 separate dataset tables. I want to create a 3rd dataset table by using the...
2
by: =?Utf-8?B?UHVjY2E=?= | last post by:
Hi, I'm using vs2005 and .net 2.0 I used 2 DirectorySearchers to retrieve data from Active Directory and placed them in 2 dataset tables. I need to perform the SQL equuvakebt of join operation to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.