The usage I have seen for INNER JOIN is when using a condition on cross table references to select data from one table. Yet the book I am using suggests in its intro to IJ that you can select data from multiple tables using INNER JOIN. Is this correct?
What I would like is the optimal solution to this problem:
I have table1 with say bookID, bookTitle, authorID.
I have table2 with authorID, authorName.
I want to supply my 'getbookData' query with a bookID and have it select the bookTitle and the authorName (not the authorID) for each book in the table.
Is this doable with INNER JOIN? And with one SELECT statement?
Thanks in advance
DT
What I would like is the optimal solution to this problem:
I have table1 with say bookID, bookTitle, authorID.
I have table2 with authorID, authorName.
I want to supply my 'getbookData' query with a bookID and have it select the bookTitle and the authorName (not the authorID) for each book in the table.
Is this doable with INNER JOIN? And with one SELECT statement?
Thanks in advance
DT