Challenge: Deleting Outdated Records
Recently, the library donated some of its antique books to a charity organization to make space for new collections. However, the records of these books are still present in the database, which needs to be cleaned up.
These books meet the following criteria:
- They were published before the year
1900
; - They are marked as unavailable (
is_available = FALSE
) since they are no longer in the library's possession.
Swipe to start coding
Your task is to write a DELETE
statement to remove these outdated records from the books
table.
Solution
Thanks for your feedback!
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Summarize this chapter
Explain the code in file
Explain why file doesn't solve the task
Awesome!
Completion rate improved to 1.72
Challenge: Deleting Outdated Records
Swipe to show menu
Recently, the library donated some of its antique books to a charity organization to make space for new collections. However, the records of these books are still present in the database, which needs to be cleaned up.
These books meet the following criteria:
- They were published before the year
1900
; - They are marked as unavailable (
is_available = FALSE
) since they are no longer in the library's possession.
Swipe to start coding
Your task is to write a DELETE
statement to remove these outdated records from the books
table.
Solution
Thanks for your feedback!
Awesome!
Completion rate improved to 1.72single