Question: Create 3 tables, insert values ( 1 - point ) . salesperson table [ [ id , name,salary,commission.percent,Date ] , [ 1 , John,
Create tables, insert values point
salesperson
tableidname,salary,commission.percent,DateJohn,Amy,Mark,Pam,Alex,
tablecustomer typelocation,cust type idname,cityRed,BostonOrange,New YorkYellow,BostonGreen,Austin
tableorderiddate,cust type idsaldes idamount
Answer the queries based on the data above point each
Write a query that will calculate the total commission order amount commission percent by salesperson.
Write a query that lists all orders where commission was greater than
Write a query that lists the city along with full order details
Write a query that lists the name of salesperson whose salary is greater than and commission greater or equal to
Write the names of salesperson who have made orders in Boston.
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
