How to display records from a different table when you query an initial table
Hi all,
Currently I have a problem. I have three tables.
The first table is user with the attributes username (primary key), password, Full name etc.
The 2nd table is books with the attributes ISBN (primary key), Title, author, publisher etc.
The last table is reservation with the attributes reservation number (primary key), username (foreign key in reservation table as it is a primary key from user table), ISBN (foreign key in reservation table as it is a primary key from book table), number of orders, and collection date.
When I query my database by using the username that I have, I can display all the records related to the username from my reservation table.
May I ask how do I also display the Tite and Author beside the results?
Please provide detailed steps as I am quite new in this.
Thanks!
