Question: Write SQL to Join tables from your test database and show Total Sales Amount ( sum(SalesAmount) ) and TotalCommissionAmount per Agent and Product . Product

 Write SQL to Join tables from your test database and show

Write SQL to Join tables from your test database and show Total Sales Amount ( sum(SalesAmount) ) and TotalCommissionAmount per Agent and Product .

Product Family Key Field Type Key Field Type Key Field Type ManagerName varchar(30) CommisionsPct float ManagerPhone char(12) AgentName varchar(30) AgentPhone char(12) PK AgentID FK ManagerlD int int ProductDescr varchar(100) Unit Price PK ProductID int ManagerAgent FK FK Key ManagerlD int AgentID int DateAssign|date Sales Order OrderDate date Market Total Amt int PK MarketlD Type MarketDeahar50) FK CustID FK ProductID FK AgentlD PK OrderNo FK S date Customer Customer Market int PK Customer Name varchar(50) FK CustID int int FK MarketlD int Customer Phone char(12) achar(20) Customer Zip Customer ID Calendar PK IS date char S_year S qtr

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!