
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
- Make a list of customers with the list of orders and the amount of dollars that they paid for each of their orders.
- Make a list of customers with the total amount of dollars that they paid for all their orders combined (for each customer).

Transcribed Image Text:The image displays an Entity-Relationship (ER) diagram illustrating a database schema for a book ordering system. Below is a transcription of the tables and their attributes:
### CUSTOMERS Table
- **Customer#**: Unique identifier for each customer
- **Lastname**: Customer's last name
- **Firstname**: Customer's first name
- **Email**: Customer's email address
- **Address**: Customer's physical address
- **City**: City of the customer
- **State**: State of the customer
- **Zip**: Zip code of the customer
- **Referred**: Indicates if customer was referred
- **Region**: Region of the customer
### ORDERS Table
- **Order#**: Unique order identifier
- **Customer#**: Links to the CUSTOMERS table
- **Orderdate**: Date the order was placed
- **Shipdate**: Date the order was shipped
- **Shipstreet**: Shipping street address
- **Shipcity**: Shipping city
- **Shipstate**: Shipping state
- **Shipzip**: Shipping zip code
- **Shipcost**: Cost of shipping
### ORDERITEMS Table
- **Order#**: Links to the ORDERS table
- **Item#**: Identifier for items in the order
- **ISBN**: Links to the BOOKS table
- **Quantity**: Number of items ordered
- **Paideach**: Amount paid per item
### BOOKS Table
- **ISBN**: Unique book identifier
- **Title**: Title of the book
- **Pubdate**: Publication date
- **PubID**: Links to the PUBLISHER table
- **Cost**: Cost price of the book
- **Retail**: Retail price of the book
- **Discount**: Discount on the book
- **Category**: Category of the book
### BOOKAUTHOR Table
- **ISBN**: Links to the BOOKS table
- **AuthorID**: Links to the AUTHOR table
### AUTHOR Table
- **AuthorID**: Unique author identifier
- **Lname**: Author's last name
- **Fname**: Author's first name
### PUBLISHER Table
- **PubID**: Unique publisher identifier
- **Name**: Name of the publisher
- **Contact**: Contact person at the publisher
-
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 nowThis is a popular solution!
Step by stepSolved in 2 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.Similar questions
- Third normal form says: a. No nonkey columns depend on another nonkey column. b. Every column that's not part of the primary key is fully dependent on the primary key. c. Eliminate repeated fields. d. None of the above.arrow_forwardBelow are some rows of the PROVIDERS table for a factory: PCODE 10192 98411 0489035 NAME Hans, Inc. Tools and More Motors Inc. PHONE 231 - 3092 231-1029 993 - 1821 All providers from the factory zone of the city start with 231. You want to get the providers that are in the factory zone of the city. Which of the following is more appropriate? O a. O b. SELECT * FROM PROVIDERS WHERE PHONE LIKE '% 231' O C. O d. SELECT * FROM PROVIDERS WHERE PHONE LIKE $231%' SELECT * FROM PROVIDERS WHERE PHONE LIKE 231 SELECT * FROM PROVIDERS WHERE PHONE LIKE '%231%'arrow_forwardTask 14: List the invoice number and invoice date for each invoice that contains an invoice line for a Wild Bird Food (25 lb).arrow_forward
- List the names of all Staff members who hold a faculty position and have a salary of $45,000 or less. Show their names as their first name, followed by a space, and then their last name but sort the list alphabetically by last name and then first name. Hint: Check out the Position column in the Staff table. All staff members who do not hold a faculty position will get a bonus this year equal to 5% of their salary. List the names, current salary, and bonus amount for each Staff member (non-faculty) who is due a bonus. Show your list in order with the person receiving the highest bonus first.arrow_forwardUse select statements to create queries that answer the following questions. Only provide the information requested. Do not provide the output. All tables are provided below List the name of all bouquets that are priced at $29.99. List the customer id for all customers who ordered item 7.arrow_forwardStayWell’s maintenance team wants to recheck the apartments that had plumbing service requests beforehand. You will need to return all the property IDs and the addresses of the properties that had plumbing service request (CATEGORY_NUMBER 1). Task Return a list of all the property IDs and the addresses of the properties that had plumbing service requests.arrow_forward
- Query 3: Write a parameter query to display the names of all prospects each member tried to recruit based on the member’s first name and the member’s last name you input. List the member’s First Name, member’s Last Name, prospect’s First Name, and prospect’s Last Name (in this order in the query grid). Display the member’s First Name Heading as Member First Name, member’s Last Name Heading as Member Last Name, prospect’s first name heading as Prospect First Name, and prospect’s last name heading as Prospect Last Name. Sort the list by Member Last Name, Member First Name, Prospect Last Name, and Prospect First Name, all ascending order. (WE ARE USING ACCESS SO I AM JUST TRYING TO UNDERSTAND WHAT TO PUT AND PLUG IN ETC. USE MY PICTURES AS REFERRENCE!)arrow_forwardWhich of the following statements is valid? (refer to the tables in the JustLee Books database.)a. SELECT title FROM booksWHERE retail<(SELECT cost FROM booksWHERE isbn = '9959789321');b. SELECT title FROM booksWHERE retail = (SELECT cost FROM booksWHERE isbn = '9959789321' ORDER BY cost);c. SELECT title FROM booksWHERE category IN (SELECT cost FROM orderitemsWHERE isbn = '9959789321');d. none of the above statementsarrow_forward3. Run a query that gives the average grade on the final exam for male students and for femalestudents. Round that number to 1 decimal place only.arrow_forward
- Task 12: When deleting a customer, subtract the balance multiplied by the sales rep’s commission rate from the commission for the corresponding sales rep.arrow_forwardWhat is the main difference between the set operators and the join?arrow_forwardThe PatientDim table contains columns. PatientEpicId and name. Use the following query to answer the questions below it: SELECT PatientEpicID Name FROM PatientDim What does this query return? select one of the following: A. Nothing because the query won't run.B. The column PatientEpicId and name from the table PatientDimC. The PatientEpicID column from the table PatientDim, with an alias of name.D. The name column from the table PatientDim, with an alias of PatientEpicIdarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

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