Answer number 10,12
Chapter3: Creating Tables
Section: Chapter Questions
Problem 4RQ
Related questions
Question
Answer number 10,12 and 13
Write the SQL statement to generate the report the following
1. Generate a report for all employees in Ascending order
2. Generate a report for all employees in Descending order
3. Generate a report for all employees in Ascending order with their assigned offices
4. Generate a report for all employees in Descending order with their assigned offices
5. Generate a report on customers
6. Generate a report on all customers and assigned sales reps
7. List all payments within a specified time frame of your choice
8. List all the sum total of all products orders.
9. Fetch the highest paying customer.
10. Fetch the highest paying employee
11. Fetch the highest paying product
12. Fetch all orders with complaints
13. Create a report on the total profits of the following offices
a. NYC
b. London
c. Paris
d. Tokyo
14. Fetch the lowest paying customer.
15. Fetch the lowest paying employee
16. Fetch the lowest paying product
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
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
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning