menu
bartleby
search
close search
Hit Return to see all results
close solutoin list

Write a query to display the author ID, author last name, book title, checkout date, and patron last name for all the books written by authors with the last name “Bruer” that have ever been checked out by patrons with the last name “Miles.” Sort the results by check out date (Figure P7.100). FIGURE P7.100 BOOKS BY AUTHOR FOR PATRON “MILES”

BuyFindarrow_forward

Database Systems: Design, Implemen...

13th Edition
Carlos Coronel + 1 other
Publisher: Cengage Learning
ISBN: 9781337627900

Solutions

Chapter
Section
BuyFindarrow_forward

Database Systems: Design, Implemen...

13th Edition
Carlos Coronel + 1 other
Publisher: Cengage Learning
ISBN: 9781337627900
Chapter 7, Problem 100P
Textbook Problem
30 views

Write a query to display the author ID, author last name, book title, checkout date, and patron last name for all the books written by authors with the last name “Bruer” that have ever been checked out by patrons with the last name “Miles.” Sort the results by check out date (Figure P7.100).

FIGURE P7.100 BOOKS BY AUTHOR FOR PATRON “MILES”

Chapter 7, Problem 100P, Write a query to display the author ID, author last name, book title, checkout date, and patron last

Program Plan Intro

SELECT statement:

It is used to retrieve information from the table or database.

The syntax for the “SELECT” statement is given below:

Syntax:

SELECT * FROM table_Name;

ORDER BY Clause:

SQL contains “ORDER BY” clause in order to sort rows. The values get sorted in ascending as well as descending order. The keyword used to sort values in ascending order is “ASC” and for descending order is “DESC”. By default, it sorts values by ascending order.

Syntax:

SELECT column_Name1, column_Name2 FROM table_Name ORDER BY column_Name2;

INNER JOIN keyword:

“INNER JOIN” keyword is used to select all the matching records of both the table.

Syntax:

SELECT col_Name FROM table_Name1 INNER JOIN table_Name2 ON table_Name1.col_Name = table_Name2.col_Name;

Explanation of Solution

Query:

Query to view the author last name “Bruer” have ever been checked out by patrons with the last name “Miles” is as follows:

SELECT AUTHOR.AU_ID, AUTHOR.AU_LNAME, BOOK.BOOK_TITLE, CHECKOUT.CHECK_OUT_DATE, PATRON.PAT_LNAME

FROM AUTHOR INNER JOIN (PATRON INNER JOIN ((BOOK INNER JOIN CHECKOUT ON BOOK.BOOK_NUM = CHECKOUT.BOOK_NUM) INNER JOIN WRITES ON BOOK.BOOK_NUM = WRITES.BOOK_NUM) ON (PATRON.PAT_ID = CHECKOUT.PAT_ID) AND (PATRON.PAT_ID = BOOK.PAT_ID)) ON AUTHOR.AU_ID = WRITES.AU_ID

WHERE (((AUTHOR...

Still sussing out bartleby?

Check out a sample textbook solution.

See a sample solution

The Solution to Your Study Problems

Bartleby provides explanations to thousands of textbook problems written by our experts, many with advanced degrees!

Get Started

Chapter 7 Solutions

Database Systems: Design, Implementation, & Management
Show all chapter solutions
add
Ch. 7 - In a SELECT query, what is the difference between...Ch. 7 - What is a subquery, and what are its basic...Ch. 7 - What are the three types of results that a...Ch. 7 - What is a correlated subquery? Give an example.Ch. 7 - Explain the difference between a regular subquery...Ch. 7 - What does it mean to say that SQL operators are...Ch. 7 - The relational set operators UNION, INTERSECT, and...Ch. 7 - What is the difference between UNION and UNION...Ch. 7 - Suppose you have two tables: EMPLOYEE and...Ch. 7 - Given the employee information in Question 19,...Ch. 7 - Given the employee information in Question 19,...Ch. 7 - Given the employee information in Question 19,...Ch. 7 - Suppose a PRODUCT table contains two attributes,...Ch. 7 - Why does the order of the operands (tables) matter...Ch. 7 - What MS Access and SQL Server function should you...Ch. 7 - What Oracle function should you use to calculate...Ch. 7 - What string function should you use to list the...Ch. 7 - What two things must a SQL programmer understand...Ch. 7 - Given the structure and contents of the...Ch. 7 - Using the EMPLOYEE, JOB, and PROJECT tables in the...Ch. 7 - Write the SQL code that will produce the same...Ch. 7 - Write the SQL code that will list only the...Ch. 7 - Write the SQL code to validate the ASSIGN_CHARGE...Ch. 7 - Using the data in the ASSIGNMENT table, write the...Ch. 7 - Write a query to produce the total number of hours...Ch. 7 - Write the SQL code to generate the total hours...Ch. 7 - Write a query to count the number of invoices.Ch. 7 - Write a query to count the number of customers...Ch. 7 - Generate a listing of all purchases made by the...Ch. 7 - Using the output shown in Figure P7.12 as your...Ch. 7 - Write a query to display the customer code,...Ch. 7 - Modify the query in Problem 13 to include the...Ch. 7 - Use a query to compute the total of all purchases,...Ch. 7 - Create a query to produce the total purchase per...Ch. 7 - Use a query to show the invoices and invoice...Ch. 7 - Write a query to produce the number of invoices...Ch. 7 - Write a query to generate the total number of...Ch. 7 - List the balances of customers who have made...Ch. 7 - Provide a summary of customer balance...Ch. 7 - Create a query to find the balance characteristics...Ch. 7 - Find the listing of customers who did not make...Ch. 7 - Find the customer balance summary for all...Ch. 7 - Create a query that summarizes the value of...Ch. 7 - Find the total value of the product inventory. The...Ch. 7 - Write a query to display the eight departments in...Ch. 7 - Write a query to display the SKU (stock keeping...Ch. 7 - Write a query to display the first name, last...Ch. 7 - Write a query to display the first name, last...Ch. 7 - Write a query to display the employee number, last...Ch. 7 - Write a query to display the first name, last...Ch. 7 - Write a query to display the employee number, last...Ch. 7 - Write a query to display a brand name and the...Ch. 7 - Write a query to display the number of products in...Ch. 7 - Write a query to display the number of products...Ch. 7 - Write a query to display the total inventorythat...Ch. 7 - Write a query to display the brand ID, brand name,...Ch. 7 - Write a query to display the department number and...Ch. 7 - Write a query to display the employee number,...Ch. 7 - Write a query to display the customer code, first...Ch. 7 - Write a query to display the department number,...Ch. 7 - Write a query to display the vendor ID, vendor...Ch. 7 - Write a query to display the employee number, last...Ch. 7 - Write a query to display the largest average...Ch. 7 - Write a query to display the brand ID, brand name,...Ch. 7 - Write a query to display the manager name,...Ch. 7 - Write a query to display the current salary for...Ch. 7 - Write a query to display the starting salary for...Ch. 7 - Write a query to display the invoice number, line...Ch. 7 - The Binder Prime Company wants to recognize the...Ch. 7 - Write a query to display the customer code, first...Ch. 7 - LargeCo is planning a new promotion in Alabama...Ch. 7 - One of the purchasing managers is interested in...Ch. 7 - The purchasing manager is still concerned about...Ch. 7 - Write a query that displays the book title, cost...Ch. 7 - Write a query that displays the first and last...Ch. 7 - Write a query to display the checkout number,...Ch. 7 - Write a query to display the book number, book...Ch. 7 - Write a query to display the different years in...Ch. 7 - Write a query to display the different subjects on...Ch. 7 - Write a query to display the book number, title,...Ch. 7 - Write a query to display the checkout number, book...Ch. 7 - Write a query to display the book title, year, and...Ch. 7 - Write a query to display the book number, title,...Ch. 7 - Write a query to display the book number, title,...Ch. 7 - Write a query to display the checkout number, book...Ch. 7 - Write a query to display the book number, title,...Ch. 7 - Write a query to display the book number, title,...Ch. 7 - Write a query to display the author ID, first...Ch. 7 - Write a query to display the book number, title,...Ch. 7 - Write a query to display the patron ID, first and...Ch. 7 - Write a query to display the patron ID, first and...Ch. 7 - Write a query to display the author ID, first and...Ch. 7 - Write a query to display the author ID, first and...Ch. 7 - Write a query to display the checkout number, book...Ch. 7 - Write a query to display the author ID, first...Ch. 7 - Write a query to display the number of books in...Ch. 7 - Write a query to display the number of different...Ch. 7 - Write a query to display the number of books that...Ch. 7 - Write a query to display the highest book cost in...Ch. 7 - Write a query to display the lowest book cost in...Ch. 7 - Write a query to display the number of different...Ch. 7 - Write a query to display the subject and the...Ch. 7 - Write a query to display the author ID and the...Ch. 7 - Write a query to display the total value of all...Ch. 7 - Write a query to display the patron ID, patron...Ch. 7 - Write a query to display the book number, title...Ch. 7 - Write a query to display the author last name,...Ch. 7 - Write a query to display the author ID, book...Ch. 7 - Write a query to display the author last name,...Ch. 7 - Write a query to display the patron ID, book...Ch. 7 - Write a query to display the patron ID, full name...Ch. 7 - Write a query to display the book number and the...Ch. 7 - Write a query to display the author ID, first and...Ch. 7 - Write a query to display the book number, title,...Ch. 7 - Write a query to display the book number, title,...Ch. 7 - Write a query to display the book number, title,...Ch. 7 - Write a query to display the author ID, author...Ch. 7 - Write a query to display the patron ID, first and...Ch. 7 - Write a query to display the patron ID, last name,...Ch. 7 - Write a query to display the average number of...Ch. 7 - Write a query to display the patron ID and the...Ch. 7 - Write a query to display the book number, title,...Ch. 7 - Write a query to display the author ID, first and...Ch. 7 - Write a query to display the book number, title,...Ch. 7 - Write a query to display the book number, title,...Ch. 7 - Write a query to display the lowest average cost...

Additional Engineering Textbook Solutions

Find more solutions based on key concepts
Show solutions add
Briefly describe the primary purpose of sawing machines.

Precision Machining Technology (MindTap Course List)

Why is important to know differential calculus?

Engineering Fundamentals: An Introduction to Engineering (MindTap Course List)

Provide suggestions for reducing input volume.

Systems Analysis and Design (Shelly Cashman Series) (MindTap Course List)

What is a managerial control?

Management Of Information Security

When you enter an area with Wi-Fi, do you configure your mobile device to connect to the Wi-Fi? Why or why not?

Enhanced Discovering Computers 2017 (Shelly Cashman Series) (MindTap Course List)

If your motherboard supports ECC DDR3 memory, can you substitute non-ECC DDR3 memory?

A+ Guide to Hardware (Standalone Book) (MindTap Course List)

Who must be provided with safety data sheets (SDSs)?

Welding: Principles and Applications (MindTap Course List)