Write the following queries in sql

Assignment Help Basic Computer Science
Reference no: EM131057909

Consider the library database of Figure 3.21. Write the following queries in SQL.

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

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

c. For each publisher, print the names of members who have borrowed more than five books of that publisher.

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

Reference no: EM131057909

Questions Cloud

Explain the politics of administrative reforms : Discuss the benefits and weakness of bureaucratic discretion to public sector management. Explain the politics of administrative reforms. Explain how ethical choices influence the decision making and performance of public administrators in recent tim..
Coding theory case study : Explain the theory in your own words based on the case study and suggested readings. Include the following in your explanation:
How do electronic marketing support the imc objectives : How do electronic and Internet marketing support the IMC objectives? List the types of electronic marketing you would use if you were try to target members of the Baby Boomers, Gen X, Gen Y, and Gen Z.
Five-year zero coupon bond with a face value : Diane is interested in buying a five-year zero coupon bond with a face value is $1,000. She understands that the market interest rate for similar investments is 9 percent. Assume annual coupon payments. What is the current value of this bond?
Write the following queries in sql : Print the average number of books borrowed per member. Take into account that if an member does not borrow any books, then that member does not appear in the borrowed relation at all.
Determine the number of three digits : Determine the number of three digits which can be formed from digits 1,2,3,4,5, and 6 if no repetitions are not allowed and if repetitions are allowed.
Calculate the amount of monthly instalments : The marked price of a color tv is ksh 20000. A dealer charges 20% more on hire purchase. Calculate the amount of monthly instalments if the deposit is ksh 6000 and there are 12 equal instalments.
Discuss the important influences as debated in class : Discuss the important influences as debated in class. Reflect on the importance of each. Create a hierarchy of influence from least to greatest influence in major and minor influences. This can be illustrated through a mind map or graphic. Discuss..
What is the cash price : An item is sold under H.P on a deposit of Ksh 600 and 12 monthly instalments of Ksh 300 each.If the H.Pprice is 12% higher than the cash price, what is the cash price?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Running time of both algorithms for sorted

Compare the running time of both algorithms for sorted, reverse-ordered, and random inputs.

  Ticketseller

Designing well-written and readable programs using a disciplined coding style, including documentation and indentation standards. Demonstrating how to implement logic involving sequence, selection, and repetition using Visual Basic.

  Validate the customer complaint

As a network engineer in a Network Operations Center, you are following up on two trouble tickets. You do not have a network management system and you have to use the basic network tools to validate the problem before you can resolve them. Please ..

  What upgrade options exist for moving from server

1. What upgrade options exist for moving from Server 2008 (R2) to Server 2012?  What limitations or caveats should be considered when upgrading? Would you typically recommend a clean install or an in-place upgrade when attempting to move a service fr..

  How many simple paths are there for vertex a to vertex b

What is the decimal value of the sum of the binary number 11001 and hexadecimal number 84 - Which of the following possibilities classes A and B be modeled by this diagram

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  Significant business opportunity of apple

Do you believe it was wise for Apple to only present their OS on their PC instead of offering the version of Apple OS for other manufactory's (HP, Dell, Sony, etc) PC's?

  Identify some characteristics of a good control system

Identify some characteristics of a good control system.

  Navigation bar is fully functional and connects all pages

Update your website that you started in Week 2 to at least 3 complete webpages, with extra placeholder pages as needed. Include multimedia (e.g. images, audio, video) appropriate to the site. Use CSS to control the look of the site. Make sure your..

  Class contains private data fields for starttime

Design a class named Clock. You should use your IDE for this exercise. The class contains private data fields for startTime and stopTime, a no argument constructor that initializes the start Time

  Brand of low-calorie microwavable food estimated

Questions 1 through 5 are based on the following scenario (adapted from Chapter 5 demand estimation question number 3, p.163) The maker of a leading brand of low-calorie microwavable food estimated the following demand equation for its product usi..

  Jerry''s appliance has a special promotion

Jerry's Appliance has a special promotion for its week long Anniversary Sale. After Customers have picked out the merchandise they wish to buy, they can draw three balls from an urn to determine the sum of the discount they will receive on their p..

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