473,473 Members | 2,178 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Datatable - can we join data

I have 2 tables each having a date in column1 and value in column 2.
I would like to extract out the common date entries from the 2 tables.
Ideally I would do a join in SQL, how do I do something like that in
datatables/dataviews etc.

regards
Nov 16 '05 #1
2 2840
http://support.microsoft.com/default...b;EN-US;326080

Krish wrote:
I have 2 tables each having a date in column1 and value in column 2.
I would like to extract out the common date entries from the 2 tables.
Ideally I would do a join in SQL, how do I do something like that in
datatables/dataviews etc.

regards

Nov 16 '05 #2
kh
> I have 2 tables each having a date in column1 and value in column 2.
I would like to extract out the common date entries from the 2 tables.
Ideally I would do a join in SQL, how do I do something like that in
datatables/dataviews etc.


No, you cannot join tables like you can in SQL. You will either have to get the required data from each table seperately, or you can create a DataRelation between the tables on the date columns, find the date you need in the parent table, and then call DataRow.GetChildRows.

hth

kh

Nov 16 '05 #3

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

Similar topics

2
by: Ester | last post by:
I would like to accomplish the following task in WebForm.aspx I have a SQL SELECT query that INNER JOIN two tables (Device_Tbl and Detail_Tbl) which will return Device_BtnID Status Z_Index ...
2
by: Ev | last post by:
I have a database table in SQL Server that has a self join. In C# I have a DataTable with a self-join. I have defined a foreign key constraint on the DataTable for the self join. The...
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...
3
by: Prasun | last post by:
Hello: Is it possible to create a datatable that is an Inner Join of two existing datatables in a Dataset. If so, how do you do so? Thank You Prasun
1
by: Simon | last post by:
Hi all, I have the following query which I want to use to update a DataTable: "SELECT tblVmsResponse.IntDestZone,(tblVmsResponse.LngDestinationDiversionNum) as Diversionnumber," & "...
2
by: Marcel Hug | last post by:
Hi NG! With a Inner-Join SQL I get my datas in a DataSet. In the table are the column Entry and Version. Like this: Entry Version 1 1 1 2 1 ...
1
by: James Wong | last post by:
In VB.Net 2005, Can I use "GROUP BY" in DataTable? Thanks! James
0
by: MathewJose | last post by:
Hi, How do we create a datatable in which you can join the data from excel sheet and db ?I need to use the new table as the datasource IPlz help!!!
1
by: szwejk | last post by:
Hi! How to get result od dataTable from Linq query? I have typied DataSet and I want to join couple of tables. And I have a problem with change this result to DataTable type. (I don't want to...
0
by: =?Utf-8?B?cm9uZSBtYXRpYXM=?= | last post by:
I have the same task to do but everytime I tried to parse my code I get a null value returned after executing "dtMaterials.WriteXml(swMaterials);". I am using the following code: Hope you can hep...
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
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
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...
1
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...
1
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
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.