Find average number of books borrowed from database table

Assignment Help Database Management System
Reference no: EM1364797

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: EM1364797

Questions Cloud

How to assume the protons started from very far away : how to Assume the protons started from very far away. Need X and Y componet.
All about quantitative reasoning for business : What are two examples of how simultaneous equations are used in business? What are some of the different ways you can satisfy these equations?
Describe how each component of your model lends : Describe how each component of your model lends itself to optimal employee performance and Develop a coaching model that optimizes performance management activities.
Depreciation and book value of investment : Determine the depreciation and book value for each of the two investment groups for each year. Determine the gain/loss for tax purposes If the Group 5 and Group 7 assets are sold at the end of the planning period for a combined $500,000.
Find average number of books borrowed from database table : 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.
Weaknesses are defined as constraints : Weaknesses are defined as constraints - How does below theory apply to your current or most recent employer?
Exchanging dollars for euro : If I plan to go to Germany thirty days and the spot exchange rate is $1.30=1 euro. The thirty day forward rate is $1.36=1 euro.
Government in health care policy formulation : Describe the relationship between the state and the federal government in health care policy formulation and implementation.
What is the distance of closest approach of the two particle : what is the distance of closest approach of the two particles. explain two ways in which you could you this equipment to raise the crate.

Reviews

Write a Review

Database Management System Questions & Answers

  Draw an er diagram for database scenario

Draw an ER diagram for database scenario. Design a set of 3NF tables for your database scenario.

  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.

  Ways of implementing one-to-one relationships

Describe the difference ways of implementing one-to-one relationships. Assume you are maintaining information on offices (office numbers, building, and phone numbers)

  Relational algebra operations

List the sequence of relational algebra operations needed to implement the queries.

  Find maximum salary of employees from database table

Find the maximum salary of all employees who are not managers. Give all the managers in the database a 10 percent salary raise. Give all the other employees a 5 percent salary raise.

  Explaining views for protecting access by unauthorized users

Why do you believe that views by themselves are insufficient for protecting access by unauthorized users?

  Explain meaning of expression acid transaction

What is lock granularity? Explain the use of BEGIN, COMMIT, and ROLLBACK TRANSACTION statements. Explain the meaning of expression ACID transaction.

  Sales transaction in retail clothing

Examine different sales transactions. Design a context diagram and a level-0 diagram that represent the selling system at the store.

  Analysis of a simple case study

VSS has an existing software package that controls its high bay systems and wants to rewrite it. The existing system is written in C and uses C-ISAM files to store data.

  Explaining database security relate to data integrity

In talking about database security, some aspects to regard as are Data Integrity, Confidentiality, and Malicious Activity. Illustrate how does database security relate to data integrity?

  Criteria selecting a life-cycle model for the project

What criteria would you use in selecting a life-cycle model for the project?

  Data modeling and normalization

Data Modeling and Normalization

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