Menu

(Solved) : Consider Following Relational Database Schema Book Book Id Title Publisher Name Authors Bo Q30748879 . . .

Consider the following relational database schema: Book (Book-id, title, publisher-name) Authors (Book-id, author-name) Publisher (Name, address, phone) Book-copies (Book-id, branch-id, number of copies) Book-loans (Book-id, branch-id, card-number, date-out, duedate) Library-Branch (Branch-id, Brach-name, address) Borrower (Card-number, name, address, phone) Write SQL Queries for the following: (1) Retrieve all borrowers who dont have any books checked out (2) How many copies of book titledConcepts of Physics are owned by each library branch (3) For each library branch, retrieve branch name,and total number of books loaned out (4) For each book whose due date is today, retrieve branch name, book title, borrowers name and address (5) Retrieve the name, address and number of books checked outfor all borrowers who have more than three books checked out

Write Relational algebra expression also.

Consider the following relational database schema: Book (Book-id, title, publisher-name) Authors (Book-id, author-name) Publisher (Name, address, phone) Book-copies (Book-id, branch-id, number of copies) Book-loans (Book-id, branch-id, card-number, date-out, duedate) Library-Branch (Branch-id, Brach-name, address) Borrower (Card-number, name, address, phone) Write SQL Queries for the following: (1) Retrieve all borrowers who don’t have any books checked out (2) How many copies of book titled’Concepts of Physics’ are owned by each library branch (3) For each library branch, retrieve branch name,and total number of books loaned out (4) For each book whose due date is today, retrieve branch name, book title, borrowers name and address (5) Retrieve the name, address and number of books checked outfor all borrowers who have more than three books checked out Show transcribed image text

Expert Answer


Answer to Consider Following Relational Database Schema Book Book Id Title Publisher Name Authors Bo Q30748879 . . .

OR