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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

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

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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