RienSQL
TASK #126 · Medium · Cian

Copies not linked to any edition

Your brief
In the library system, the BookCopies table contains book copies (physical copies of editions), and the BookEditions table contains work editions.

Check if there are book copies that are not linked to any edition (possibly due to data errors). Result: copy id.
Expected columnscopy_idCian
SQL editor
SQLite
Ctrl / ⌘ + ↵
Result

Write a query and run it to see the results.

Schema
Booksid, title
BookEditionsid, book_id, publish_year, pages
BookCopiesid, edition_id, inventory_number
OperationLogsid, user_id, copy_id, date_taken, date_returned