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

  What is the minimum size of sequence number in bits

Suppose that a window size in Selective and Repeat is 4, what is the minimum size of sequence number in bits required to have no problems at receiver.

  Find the type of grammar

S->iCtSS1 | s1 ->eS|? C->b Find the type of grammar

  Calculate the cost of the total mileage for the trip

Calculate the cost of the total mileage for the trip and implement and test a program to calculate the cost of different types of student trips.

  Categorize each of them into the area

During the Sarbanes-Oxley audit of a financial services company, you note the following issues. Categorize each of them into the area to which they belong: IT change management, logical access to data, and IT operations.

  Monitoring performance of it acquisition projects

Who is or should be responsible for monitoring the performance of IT acquisition projects and taking action that may result in cancelling the project?

  Career episode between 1000 to 2000 words

Write a Career Episode between 1000 to 2000 words

  Solving traveling salesman problem using 2-opt algorithm

Write c++/java program that solving traveling salesman problem using 2-opt algorithm. java one is more preferable.

  What information systems skills and knowledge are essential.

Identify the major information systems which are currently used in many businesses. Compare these information systems and identify the main uses.

  Explaining statement for security policy

Write a statement for security policy for the following:Let LAN for small 100-person business, Pixel Inc. Business occupies one floor in office building. Everybody has a computer on his or her desk.

  Hardware and network plan

Hardware and Network Plan

  Finds all possible combinations for these three guys

Having trouble with figuring out how to write a function for the following problem, I have to write a program that finds all possible combinations for these three guys (john,nick,stephen) to split a check. John only has $10 bills, nick only has $5 bi..

  Discuss two major issues involved with acquiring systems

Discuss two major issues involved with acquiring systems and two major issues commonly faced when maintaining them. Address how each can be minimized or overcome.

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