Instruction
The JOIN clause we used is the most common way of joining tables. It's full name is INNER JOIN. In other words JOIN is a synonym for INNER JOIN; they both mean exactly the same thing.
Some people prefer to use INNER JOIN for the sake of clarity, especially in long queries with different kinds of joins used together.
Exercise
Join the Author and Book tables using an INNER JOIN.
Show the title of each book together with its rating. Consider only those books that were published by authors who are still alive.
Stuck? Here's a hint!
To select the books for authors who are still alive, you have to select the rows from the Author table for which the DeathYear column is null.
You can do this with the following IS NULL condition:
WHERE Author.DeathYear IS NULL
Type:
SELECT Book.Title, Book.Rating FROM Book INNER JOIN Author ON Book.AuthorId = Author.Id WHERE Author.DeathYear IS NULL;



