Question: Answer the following questions. Make sure you use comments in your SQL file to clarify/show which SQL statement is the answer to which question. Write
Answer the following questions. Make sure you use comments in your SQL file to clarify/show which SQL statement is the answer to which question.
- Write a query to show the detail of the customer with the highest credit limit.
- Write a query to show the number of payments from each customer. (Hint: use a subquery in the SELECT clause. )
- Write a query to show the highest total payment. Hint: use the solution to Q2 in the From Clause.
- Write a query to show the number of each customer's orders. Hint: use a subquery in the SELECT clause.
- Write a query to show the number of employees in each office. Hint: use a subquery in the SELECT clause.
- Write a query to show the customers that have not placed any orders. Hint: use a subquery in the WHERE clause.
- Write a query to show the value of each order. Hint: use a subquery in the SELECT clause.
- Write a query to show the total money paid by each customer.
- Write a query to show the total money paid by each customer per year.
- Write a query to show the total number of orders from each customer.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
