ch 7 and 8 assignments bml.docx

ch 7 and 8 assignments bml.docx - 7-54 Select Distinct...

This preview shows page 1 - 3 out of 3 pages.

7-54) Select Distinct M.EmployeeName From Employee_T M, Employee_T E, EmployeeSkills_T ES Where SkillID = 'BS12' And ES.EmployeeID = E.EmployeeID And E.EmployeeSupervisor = M.EmployeeID Order By M.EmployeeName 7-55) Select Distinct S.SalespersonName, P.ProductFinish, Sum(OrderedQuantity) As TotalSales From Salesperson_T S, OrderLine_T OL, Product_T P, Order_T O Where S.SalespersonID = O.SalespersonID And O.OrderID = OL.OrderID And OL.ProductID = P.ProductID Group by SalespersonName, ProductFinish 7-56) Select W.WorkCenterID, Count(ProductID) As TotalProducts From WorkCenter_T W Left Outer Join ProducedIN_T P On W.WorkCenterID = P.WorkCenterID Group By W.WorkCenterID 7-57) Select CustomerName, Count(VendorID) As NumVendors From Customer_T C Left Outer Join Vendor_T V On C.CustomerState = V.VendorState Group by Customername 7-58) Select OrderID From Order_T Except Select OrderID
Image of page 1

Subscribe to view the full document.

From Payment_T 7-59) Select CustomerState From Customer_T Except Select SalespersonState From Salesperson_T
Image of page 2
Image of page 3
  • Fall '17
  • Barson

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern