Hi
I have typed DataSet containing a number of related DataTables.
For example, suppose I have Table1 and Table2
Table1 has columns ColA, ColB, ColC
and Table2 has columns ColZ, ColA
Table1 primary key is ColA
Table2 primary key is ColZ/ColA
I want to get all rows from Table1, where Table2 has a given value of ColZ (eg 1)
If this was SQL, I would do something like
Can anybody tell me how I can do this in my DataSet?
It has been driving me mad trying to figure it out!
I have typed DataSet containing a number of related DataTables.
For example, suppose I have Table1 and Table2
Table1 has columns ColA, ColB, ColC
and Table2 has columns ColZ, ColA
Table1 primary key is ColA
Table2 primary key is ColZ/ColA
I want to get all rows from Table1, where Table2 has a given value of ColZ (eg 1)
If this was SQL, I would do something like
Code:
select a.ColA, a.ColB, a.ColC
from Table1 a
inner join Table2 b on a.ColA = b.ColA
where b.ColZ = 1
Can anybody tell me how I can do this in my DataSet?
It has been driving me mad trying to figure it out!