Find average number of books borrowed per member

Assignment Help Database Management System
Reference no: EM1353467

Consider the following relational schema for a library:

member(memb_no,name,dob)
books(isbn,title,authors,publisher)
borrowed(memb_no,isbn,date)

Write eh following queries in relational algebra.

a. Find the names of members who have borrowed any book published by "McGraw-Hill".

b. Find the names of members who have borrowed all book published by "McGraw-Hill".

c. Find the name and membership number of members who have borrowed more than five books published by "McGraw-Hill".

d. Find the name and membership number of members who have borrowed more than five different books of that publisher.

e. Find the average number of books borrowed per member. Take into account that if a member does not borrow any books, then that member does not appear in the borrowed relation at all.

Reference no: EM1353467

Questions Cloud

What a man needs to help provide a college education : What a man needs to help provide a college education for his young daughter. He can afford to invest $800/yr for the next four years, beginning on the girl's fourth birthday.
Calculate the x component of the velocity : What is the greatest distance foot of the ladder can be placed from the base of the wall without the ladder immediately slipping.
Difficult in healthcare organizations : What are some ways strategic managers could make culture change easier - Why is culture change so difficult in healthcare organizations
Computations to explain if the change in policy : The Kranberry kids Corporation is in the volatile garment business. The company has yearly revenues of $250 million and operates with a 30 percent gross margin on sales.
Find average number of books borrowed per member : Find the average number of books borrowed per member. Take into account that if a member does not borrow any books, then that member does not appear in the borrowed relation at all.
Illustrate what is the market elasticity of demand : Illustrate what is the market elasticity of demand. What is your elasticity of demand in this Cournot oligopoly.
Person personality determining genetically : If we were to say that a person's personality is determined genetically, would it matter what environment surrounded that person?
Explain the levels of corporate culture : Levels of Corporate Culture - Explain the three levels of corporate culture.
How high she rise during this interval : Two children fighting over a toy pull on the toy in different directions. One child pulls to the north with a force of and the other child pulls to the east with a force of What is the magnitude of net force on the toy.

Reviews

Write a Review

Database Management System Questions & Answers

  Create a report which identifies five most expensive bicycle

Create a report which identifies five most expensive bicycles. The report must list bicycles in descending order from most expensive to lease expensive, the quantity on hand for each, and the markup percentage for each.

  Explaining emp table does not have assigned primary key

Developers have noticed that EMP table doesn't have an assigned primary key. EMP_ID column has been selected to be the primary key.

  Explain the problems associated with data redundancy

Assignment 5: Logical Design, Part II, Explain the problems associated with data redundancy as it pertains to effectively using information for reporting and analysis.

  Create an e-r diagram

You have probably seen that already when you tried to create an E-R diagram. Visio uses notation and graphical shapes that are not the same as those in your text. If you look at some of the links to schemas, you will see a similar sort of thing.

  Pharmacy designating database

Pharmacy systems today are more efficient and user friendly when compared to the systems 20 years ago.

  Patients post cardiac bypass surgery

Monitor Renal Outcomes in patients post cardiac bypass surgery?

  Design and build a prototype data warehouse

Design and build a prototype data warehouse using the data on Spend over £25,000 in the Science and Technology Facilities Council

  Describing the purpose of database an its functionality

Describing the purpose of database an its functionality, plus a detailed E-R diagram.

  Explaining unclustered b pus tree index

Suppose you have a table which contains 27,000 data records, and you have unclustered B+ Tree Index on the table.

  What do you mean by data base scheme

Database Questions:  What do you mean by data base scheme?  What do you mean by cardinality ratio?   What do you mean by degree of relation?

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Database modeling and design

Database Modeling and Design: A complete table diagram. Transform model to tables, include all attributes and keys.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd