Hi, I'm quite new with Data Adapter on VB.NET. I'm having a problem with retrieving data on different tables.
Example database:
BookInfo[INDENT]BookID: HSD993Z
Title: Introduction to SQL[/INDENT][INDENT]BookID: LDJA293
Title: Advance Computer Programming[/INDENT][INDENT]BookID: KSKL194
Title: Object Oriented Programming[/INDENT]
StudentInfo[INDENT]StudentID: 2938485
FullName: Michael Zip[/INDENT][INDENT]StudentID: 2949284
FullName: Ray Williams[/INDENT]
BorrowerInfo[INDENT]StudentID: 2938485
BookID: KSKL194[/INDENT][INDENT]StudentID: 2938485
BookID: HSD993Z[/INDENT]
To get all the list of the Students who borrowed books, the query would be
SELECT StudentInfo.FullName, BookInfo.Title
FROM BookInfo, StudentInfo, BorrowerInfo
WHERE BookInfo.BookID=BorrowerInfo.BookID AND StudentInfo.StudentID=BorrowerInfo.StudentID;
Now the Fill method on DataAdapter has a parameter of DataSet and SourceTable.
I'm confused on SourceTable, should I write all of the tables I used?
Ex: SourceTable = "BookInfo, StudentInfo, BorrowerInfo"
I can't show my reports.
I don't have problems with listing all records from one table.
Ex: "SELECT * FROM StudentInfo" and the TableSource is "StudentInfo"
Can you please help me?
Thanks in advance