Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

For the following questions, use the relational schema defined as follow. Book BookCopy Borrower BookLoan (ISBN, title, author, edition, year) (copyNo, ISBN, available) (borrowerNo, borrowerName,

image text in transcribed

For the following questions, use the relational schema defined as follow. Book BookCopy Borrower BookLoan (ISBN, title, author, edition, year) (copyNo, ISBN, available) (borrowerNo, borrowerName, borrowerAddress) (copyNo, dateOut, dateDue, borrowerNo) where Book contains details of book titles in the library and the ISBN is the primary key. contains details of the individual copies of books in the library and copyNo is the primary key. ISBN is a foreign key identifying the book title. contains details of library members who can borrow books and borrowerNo is the primary key contains details of the book copies that are borrowed by library members and copyNo/dateOut forms the primary key. borrowerNo is a foreign key identifying the borrower. BookCopy Borrower BookLoan 1. List all book titles. 2. List all borrower details, in alphabetical order of borrower name. 3. List all book titles published in the year 2005 written by "J. K. Rowling" 4. How many copies of ISBN "0-7475-8108-8" are there? 5. List all copies of the book with "Harry Potter" keyword in title that are available for borrowing. 6. List the names of borrowers who currently have the book title "Lord of the Rings" on loan. 7. List the names of borrowers who will overdue books today. 8. List the top 10 most-borrowed books in the library

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions