Answered step by step
Verified Expert Solution
Question
1 Approved Answer
SQL 5.28-5.33 The following tables form part of a Library database held in an RDBMS (ISBN, title, edition, year) Book BookCopy copyNo, ISBN, available) Borower
SQL
5.28-5.33
The following tables form part of a Library database held in an RDBMS (ISBN, title, edition, year) Book BookCopy copyNo, ISBN, available) Borower borrowerNo, borrowerName, borrowerAddress) BookLoan opyNo, dateOut, dateDue, borrowerNo) contains details of book titles in the library and the ISBN is the key contains details of the individual copies of books in the library and copyNo is the key. ISBN is a foreign key identifying the book title contains details of library members who can borrow books and borrowerNo is the key where Book BookCopy Borrower BookLoan contains details of the book copies that are borrowed by library members and copyNo/dateOut forms the key. borrowerNo is a foreign key identifying the borrower Formulate the additional queries in relational algebra and SQL 5.24 List all book titles. 5.25 List all borrower details 5.26 List all book titles published in the year 2012 5.27 List all copies of book titles that are available for borrowing. 5.28 List all copies of the book title "Lord of the Rings" that are available for borrowing 5.29 List the names of borrowers who currently have the book title "Lord of the Rings" on loan 5.30 List the names of borrowers with overdue books 5.31 How many copies of ISBN "O-321-52306-7" are there? 5.32 How many copies of ISBN "0-321-52306-7" are currently available? 5.33 How many times has the book title with ISBN "0-321-52306-7" been borrowed? 5.34 Produce a report of book titles that have been borrowed by "Peter Bloomfield". 5.35 For each book title with more than 3 copies, list the names of library members who have borrowed them. 5.36 Produce a report with the details of borrowers who currently have books overdue 5.37 Produce a report detailing how many times each book title has been borrowedStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started