Answer:
Answers explained below
Explanation:
The two related table are:
i) Books Table
ii) BOOKAUTHOR Table
The common field between the two tables are:
i) ISBN attribute
The columns that i would like to display are:
Title, ISBN, AuthorID, PubID, PubDate, Cost, Retail, Discount, Category
Sql Code to join tables using where clause
select t1.Title, t1.ISBN, t2.AuthorID, t1.PubID, t1.PubDate, t1.Cost, t1.Retail, t1.Discount, t1.Category from Books t1 INNER JOIN BOOKAUTHOR t2 ON t1.ISBN = t2.ISBN where t1.ISBN = 0401140733
The above query will dispaly the attributes of table "Books" and of table "BOOKAUTHOR" for book ISBN 0401140733
Repeat problem 1 but remove the WHERE statement
After removing the where condition we will have following join query
select t1.Title, t1.ISBN, t2.AuthorID, t1.PubID, t1.PubDate, t1.Cost, t1.Retail, t1.Discount, t1.Category from Books t1 INNER JOIN BOOKAUTHOR t2 ON t1.ISBN = t2.ISBN
The above query will display all the mapping data of table "Books" and of Table "BOOKAUTHOR"