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

  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?

  Application important part of security model for databases

Using Internet as the research tool for extra information not presented in text, describe why application roles are important part of the security model for databases.

  Develop a new information system

MGMT321 Group Project :  You were hired as an analyst to develop a new information system to automate the payroll transactions in a mid-size organization. The proposed system will contain employees’ data and interface with the organization’s General ..

  Translation from erd to the relational model

Complete (i.e., reverse engineering) ER diagram below such that 4 relation schemas above are exactly result of a translation from the ERD to the relational model.

  Define set of relational schemas and identify primary keys

We want to construct a database for a world-wide package delivery company. Define a set of relational schemas and identify primary and foreign keys. Try not to include redundant schemas.

  Difference between obsolescent and redundant stocks

Difference between obsolescent and redundant stocks

  Write names-e-mail addresses for all customers from table

Show all the data in each of the four tables. Do not show foreign key columns. Write names and e-mail addresses for all customers who have had a stove repair that cost more than $50.

  Produce different final database state than using trigger

Assume that relation Employee has no tuples in it initially. You are to show the simplest example you can think of where using trigger T1 will produce a different final database state than using trigger T2.

  Write an sql query

Write an SQL query to get the author of the book "The Alchemist"

  Describing the purpose of database an its functionality

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

  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.

  Design a set of 3nf tables for database scenario

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

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