Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How could I join the table (shown below) to get the result (shown below)? Using SQL Consider the following schema Customers CustomerID Product Vendors Orders

How could I join the table (shown below) to get the result (shown below)? Using SQLimage text in transcribed

Consider the following schema Customers CustomerID Product Vendors Orders OrderNumber OrderDate CustStreetAddress Vendorld WholesalePrice DaysToDeliver Order Details Vendors CustState VendorlD EmployeelD QuotedPrice RetailPrice QuantityOnHand CategorylD VendCity VendZipCode VendFaxNumber VendWebPage VendEMailAddress Categories EmployeelD CategorylD CategoryDescription MonthYear EmpStreetAddress MonthNumber MonthStart MonthEnd January February March April May June July August September October EmpState EmpZipCode EmpAreaCode ztblPu LowSpend HighSpend Sequence Figure 1: Sales Orders Database Subtask 7.2.1 Write a query that creates a listing of the value of all the sales of each employee per product to answer the question: What is the value of the total sales of each employee per product? As before, you have to resort to the QuantityOrdered and QuotedPrice columns to find the sales. Order the result by EmpLastName and ProductName. EmpFirstName Matt EmpLastName Berg ProductName TotalSolo AeroFlo ATB Wheels 10179.54

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Current Trends In Database Technology Edbt 2004 Workshops Edbt 2004 Workshops Phd Datax Pim P2panddb And Clustweb Heraklion Crete Greece March 2004 Revised Selected Papers Lncs 3268

Authors: Wolfgang Lindner ,Marco Mesiti ,Can Turker ,Yannis Tzitzikas ,Athena Vakali

2005th Edition

3540233059, 978-3540233053

Students also viewed these Databases questions

Question

Write down the circumstances in which you led.

Answered: 1 week ago