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). BOOK, TITLE AU ID AU LNAME CHECK OUT DAТЕ PAT LNAME 251 Bruer Capture the Cloud 2017-04-21 Miles 251 Bruer Capture the Cloud 2017-05-15 Miles Figure 7.100
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). BOOK, TITLE AU ID AU LNAME CHECK OUT DAТЕ PAT LNAME 251 Bruer Capture the Cloud 2017-04-21 Miles 251 Bruer Capture the Cloud 2017-05-15 Miles Figure 7.100
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question

Transcribed Image Text:**Problem 100**
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 checkout date (Figure P7.100).
**Figure 7.100: Data Table Explanation**
The figure contains a table with the following columns:
1. **AU_ID**: Author ID
- Example: 251
2. **AU_LNAME**: Author Last Name
- Example: Bruer
3. **BOOK_TITLE**: Title of the Book
- Example: Capture the Cloud
4. **CHECK_OUT_DATE**: Date when the book was checked out
- Examples: 2017-04-21, 2017-05-15
5. **PAT_LNAME**: Patron Last Name
- Example: Miles
The table shows two records with the same author and book, but with different checkout dates.
**Task**

Transcribed Image Text:**Database Schema**
The schema for the **Ch07_FACT** database is shown below and should be used to answer the next several problems. Click this image to view it in its own tab.
**Figure P7.56: The Ch07_FACT ERD (Entity-Relationship Diagram)**
This diagram includes five entities: CHECKOUT, PATRON, BOOK, AUTHOR, and WRITES, each with various attributes and relationships.
1. **CHECKOUT**
- **PK**: Check_Num
- **FK1**: Book_Num
- **FK2**: Pat_ID
- Attributes: Check_Out_Date, Check_Due_Date, Check_In_Date
2. **PATRON**
- **PK**: Pat_ID
- Attributes: Pat_FName, Pat_LName, Pat_Type
3. **BOOK**
- **PK**: Book_Num
- **FK1**: Pat_ID
- Attributes: Book_Title, Book_Year, Book_Cost, Book_Subject
4. **AUTHOR**
- **PK**: Au_ID
- Attributes: Au_FName, Au_LName, Au_BirthYear
5. **WRITES**
- **PK, FK1**: Book_Num
- **PK, FK2**: Au_ID
**Description of Diagram:**
- *Relationships:*
- There are connecting lines between CHECKOUT and PATRON, BOOK and AUTHOR, indicating relational connections.
- A dotted line connects BOOK with PATRON through Pat_ID, and a solid line ties AUTHOR with WRITES and BOOK.
- *Keys:*
- PK indicates Primary Key, unique identifiers for each entity.
- FK indicates Foreign Key, which creates a relationship between tables.
**Context:**
The CIS Department at Tiny College maintains the Free Access to Current Technology (FACT) library of e-books. FACT is a collection designed for technology e-books usable by both faculty and students. Agreements with publishers enable patrons to electronically check out books, record usage, and track the authorship of these books.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education