Course Content
daily sql
daily sql
daily
Task
Swipe to show code editor
Write a SELECT
statement to retrieve the title
of each book and the corresponding author's name
. Query the books
and authors
tables, returning title
from books
and name
from authors
.
Example tables:
books
book_id | title | author_id |
---|---|---|
1 | Harry Potter and the Philosopher's Stone | 1 |
2 | A Game of Thrones | 2 |
3 | The Hobbit | 3 |
authors
author_id | name |
---|---|
1 | J.K. Rowling |
2 | George R.R. Martin |
3 | J.R.R. Tolkien |
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 1. Chapter 1
daily
Task
Swipe to show code editor
Write a SELECT
statement to retrieve the title
of each book and the corresponding author's name
. Query the books
and authors
tables, returning title
from books
and name
from authors
.
Example tables:
books
book_id | title | author_id |
---|---|---|
1 | Harry Potter and the Philosopher's Stone | 1 |
2 | A Game of Thrones | 2 |
3 | The Hobbit | 3 |
authors
author_id | name |
---|---|
1 | J.K. Rowling |
2 | George R.R. Martin |
3 | J.R.R. Tolkien |
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 1. Chapter 1
Switch to desktop for real-world practiceContinue from where you are using one of the options below