Question: MYSQL a. Write a query to list the customer names, the number oforders whose status is ?In Process? and the number of products inthose orders.
MYSQL

a. Write a query to list the customer names, the number oforders whose status is ?In Process? and the number of products inthose orders.
b. Write a query to display the customer name for all customersthat have not placed any order. Order the results by customer namein the ascending order.
c. Write a query to list the different offices (their address),count of the number of employees at that office and the number oforders that employees at that office were sales representativesfor.
d. Write a query to display the name (last name and first name)of the employee and the amount of business he has generated (i.e.how many dollars? worth of product has an employee sold). Order theresults in descending value of dollars? worth of products sold.
Payments checkNumber paymentDate amount customerNumber Customers customerNumber customerName contactLastName contactFirstName phone addressLine1 >addressLine2 city > state postalCode country sales RepEmployeeNumber creditLimit > customerLocation Orders order Number orderDate requiredDate shipped Date status > comments customerNumber H+ Offices officeCode city phone addressLine1 >addressLine2 state country postalCode territory > officeLocation Employees employeeNumber lastName firstName extension >email reports To job Title officeCode Order Details orderNumber productCode quantity Ordered priceEach orderLineNumber HH Product Lines productLine textDescription Products productCode productName productScale productVendor product Description quantity InStock >buy Price MSRP > productLine
Step by Step Solution
3.50 Rating (157 Votes )
There are 3 Steps involved in it
a SELECT customersname COUNTordersid AS numorders SUMorderitemsquantity AS numproducts FR... View full answer
Get step-by-step solutions from verified subject matter experts
