How select from 2 ADO.NET DataTables?
- From: "Ronald S. Cook" <rcook@xxxxxxxxxxxx>
- Date: Thu, 9 Mar 2006 22:30:31 -0700
Let's say I have 2 ADO.NET DataTables (tblAuthor and tblBook) within an
ADO.NET DataSet (dstPublish).
tblAuthor has DataColumns AuthorID and AuthorName, tblBook has DataColumns
BookID, BookTitle, AuthorID (assume a book can be written by only one
author).
tblAuthor
---------
1 Ayn
2 Jim
3 Sue
tblBook
-------
10 Fountainhead 1
11 Atlas Shrugged 1
12 Moby *** 2
I want to create a list of all books with their associated author name.
FountainHead Ayn
Atlas Shrugged Ayn
Moby ***
This is a breeze in SQL for me, but I'm not sure how to go about using
ADO.NET DataTables. Do I need a DataRelation, or is it just a matter of
having a for loop within a for loop, or is it something else?
Thanks,
Ron
P.S. Either VB.NET or C# code example would be great!
.
- Follow-Ups:
- Re: How select from 2 ADO.NET DataTables?
- From: Stephen Howe
- Re: How select from 2 ADO.NET DataTables?
- Prev by Date: Re: How to use LIKE operator with Filter prop of recordset for num fie
- Next by Date: Re: How select from 2 ADO.NET DataTables?
- Previous by thread: Re: i need some guidance
- Next by thread: Re: How select from 2 ADO.NET DataTables?
- Index(es):