Write a query that lists for each book its title and the name of its publisher. Order…
Jump to turn (6)
- 1Write a query that lists for each book its title and the name of its publisher.
- 2Write a query that lists for each book its title and the name of its publisher.
- 3Expected result Book Publisher How Computers Work Info Press Learn to Knit Info
- 4Write a query that lists for each book its title and the name of its publisher.
- 5Your task is to write a similar query as in the previous exercise, but in additi
- 6Your task is to write a similar query as in the previous exercise, but in additi
- User
Write a query that lists for each book its title and the name of its publisher. Order the listing alphabetically by the books' titles. Rename the columns as shown on the result table below.
- Assistant
SELECT book.title AS Title, publisher.name AS Publisher FROM book INNER JOIN publisher ON book.publisher_id = publisher.id ORDER BY book.title ASC
/* Result table:
Title Publisher 1984 Penguin Animal Farm Penguin Brave New World HarperCollins Fahrenheit 451 Simon & Schuster Lord of the Flies Penguin Pride and Prejudice Penguin Classics To Kill a Mockingbird Harper Lee */