SQL - LEFT and RIGHT JOIN
You have tables:
Authors:
AuthorID | Name
1 | John
2 | Mary
Books:
BookID | AuthorID | Title
101 | 1 | SQL Basics
102 | 3 | Advanced SQL
Write a query using RIGHT JOIN to list all books with their authors' names, showing NULL for authors not in Authors table. Which query is correct?
Authors:
AuthorID | Name
1 | John
2 | Mary
Books:
BookID | AuthorID | Title
101 | 1 | SQL Basics
102 | 3 | Advanced SQL
Write a query using RIGHT JOIN to list all books with their authors' names, showing NULL for authors not in Authors table. Which query is correct?
