473,507 Members | 2,405 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

joining datatables

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 a sql database and one comes
from an .dbf file

Any help would be greatly appreciated

Thanks
Nov 9 '06 #1
3 2441
Hi,

I don;t think you can do something like that in ADO.NET

What you can do is an iterative process:
loop in the rows of the first table
get the "children" rows from the second table, for this you will need a FK
relationship between the tables
That's the only way I can think of.

"bbdobuddy" wrote:
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 a sql database and one comes
from an .dbf file

Any help would be greatly appreciated

Thanks
Nov 9 '06 #2
Am I going to have a problem with speed by doing this iterative process?

"ignacio machin" wrote:
Hi,

I don;t think you can do something like that in ADO.NET

What you can do is an iterative process:
loop in the rows of the first table
get the "children" rows from the second table, for this you will need a FK
relationship between the tables
That's the only way I can think of.

"bbdobuddy" wrote:
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 a sql database and one comes
from an .dbf file

Any help would be greatly appreciated

Thanks
Nov 9 '06 #3
Am I going to have a problem with speed by doing this iterative process?
If you can not spare let say more than 100 nanoseconds for two tables from
100 rows, than you are probably in trouble, but it will definitely be very
much quicker than trying to do this over your Lan and disk and than over two
separated databases.

Cor

"bbdobuddy" <bb*******@discussions.microsoft.comschreef in bericht
news:A1**********************************@microsof t.com...
Am I going to have a problem with speed by doing this iterative process?

"ignacio machin" wrote:
>Hi,

I don;t think you can do something like that in ADO.NET

What you can do is an iterative process:
loop in the rows of the first table
get the "children" rows from the second table, for this you will need a
FK
relationship between the tables
That's the only way I can think of.

"bbdobuddy" wrote:
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 a sql database and one
comes
from an .dbf file

Any help would be greatly appreciated

Thanks

Nov 10 '06 #4

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

Similar topics

2
2043
by: Jade | last post by:
Hi, I just wanted to ask a quick question regarding datasets. I am creating 3 tables using a dataadapter. what i want to know is that is the relationship created between these datatables...
4
4241
by: Job Lot | last post by:
Is there anyway of Joining two or more DataTable with similar structure? I have three DataTables with following structures Data, AmountB/F, Repayments, InterestCharged and AmountC/F i want...
2
4318
by: Z D | last post by:
Hello, I'm currently using Remoting (HTTP/Binary) to remote a simple object. Everything is working fine except for one function that returns an arraylist of datatables. When I call this...
4
2242
by: sal | last post by:
Greets, All Converting array formula to work with datatables/dataset tia sal I finally completed a formula I was working on, see working code below. I would like to change this code so it...
5
13347
by: Frank | last post by:
Hello All, I am working on a vb.net app where I need to compare to 2 datatables and determine if a string exists in one or both. The first dt is filled from the db. A form is loaded and the...
3
1576
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...
7
2202
by: JoNo216 | last post by:
hey guys, I'm a little new when it comes to the ASP environment, and I need a little help... Does anyone know how to combine two separate datatables, and get them to display one after the other...
0
1511
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)? ...
2
1913
by: =?Utf-8?B?QVZM?= | last post by:
Hi, Ive two data tables..I need to perform a join on these datatables.. and fetch the data..I need to do it programaticlaly.. How can I acheive it...any sample code wpuld be of great help..
0
7223
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
7114
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
7321
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,...
1
7034
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
7488
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
3191
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
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1544
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
412
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.