Waiting for validation
Original question
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'?
New question
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'?
0
Community EvaluationsNo one has reviewed this question yet, be the first!
13
Write the SQL query to delete a column from a table16
Which SQL keyword is used to sort the result of a SELECT statement?17
Write a SQL query to insert data into a table18
Update a column in an SQL table19
Select only distinct values in a column using SQL47
Write a SQL query to retrieve the list of employees with a salary greater than 5100.12
Write a SQL query to retrieve the titles of books written by 'John Smith'.