Easy
Given the following 'authors' and 'books' tables:
authors:
| author_id | name |
|-----------|------------|
| 1 | John Smith |
| 2 | Jane Doe |
books:
| book_id | title | author_id |
|---------|----------------|-----------|
| 1 | My First Book | 1 |
| 2 | Another Book | 1 |
| 3 | A Great Novel | 2 |
Which SQL query retrieves the titles of books written by 'John Smith'?
Edit
Similar QuestionsMore questions about SQL