Answered step by step
Verified Expert Solution
Question
1 Approved Answer
11:32 [Recommend Convert PDF to DOC, and retain the format LTE 4.5G Convert Consider the LIBRARY relational database schema shown in Figure 8.14, which
11:32 [Recommend Convert PDF to DOC, and retain the format LTE 4.5G Convert Consider the LIBRARY relational database schema shown in Figure 8.14, which is used to keep track of books, borrowers, and book loans. Referential integrity constraints are shown as directed arcs in Figure 8.14, as in the notation of Figure 5.7. Write down relational expressions for the following queries: 1. How many copies of the book titled The Lost Tribe are owned by the library branch whose name is 'Sharpstown"? 2. How many copies of the book titled The Lost Tribe are owned by each library branch? 3. Retrieve the names of all borrowers who do not have any books checked out. 4. For each book that is loaned out from the Sharpstown branch and who's Due_dat retrieve the book title, the borrower's name, and the borrower's address. 5. Retrieve the names, addresses, and number of books checked out for a have more than five books checked out. BOOK Book_id Title Publisher_name 444 BOOK AUTHORS Book_id Author_name PUBLISHER Name Address Phono A BOOK COPIES Book_id Branch_id No_of_copies BOOK LOANS Book id Branch id Card no Date_out Due_date LIBRARY_BRANCH Branch id Branch_name Address orrowers who anmoud Abura BORROWER Card no Name Address Phone Note: You can insert artificial data Note: you should use linear algebra expressions only NO COMPUTERIZED SQL SYNTAX ARE ACCEPTABLE Good luck!
Step 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