Challenge: Avoid the Damaged Books
The library decided to mention the condition of the available books to better keep track of which books are suitable to be lent and which need to be preserved.
The condition of a book can be one of the following:
New | Used | Damaged
The books that are damaged cannot be borrowed by anyone. As a librarian, you are required to make a new list of all the available books that can be borrowed.
Swipe to start coding
Write a query to list the names, authors, and publication years of all the books that are borrowable.
The books
table includes these columns: id
, title
, author
, book_condition
, genre
, and publication_year
.
Solution
Thanks for your feedback!
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 1.72
Challenge: Avoid the Damaged Books
Swipe to show menu
The library decided to mention the condition of the available books to better keep track of which books are suitable to be lent and which need to be preserved.
The condition of a book can be one of the following:
New | Used | Damaged
The books that are damaged cannot be borrowed by anyone. As a librarian, you are required to make a new list of all the available books that can be borrowed.
Swipe to start coding
Write a query to list the names, authors, and publication years of all the books that are borrowable.
The books
table includes these columns: id
, title
, author
, book_condition
, genre
, and publication_year
.
Solution
Thanks for your feedback!
Awesome!
Completion rate improved to 1.72single