Question: Create 3 tables, insert values ( 1 - point ) . salesperson table [ [ id , name,salary,commission.percent,Date ] , [ 1 , John,

Create 3 tables, insert values (1-point).
salesperson
\table[[id,name,salary,commission.percent,Date],[1,John,100000,6,4/1/20006],[2,Amy,120000,5,5/1/2010],[3,Mark,65000,12,12/25/2008],[4,Pam,25000,25,1/1/2005],[5,Alex,50000,10,2/3/2007]]
\table[[customer typelocation,],[cust type id,name,city],[1,Red,Boston],[2,Orange,New York],[3,Yellow,Boston],[4,Green,Austin]]
\table[[order,,],[id,date,cust type id,saldes id,amount],[1,11?2014,3,4,100000],[2,21?2014,4,5,5000],[3,31?2014,1,1,50000],[4,41?2014,1,4,25000]]
Answer the queries based on the data above (1-point each)
Write a query that will calculate the total commission (order amount * commission percent/100) by salesperson.
Write a query that lists all orders where commission was greater than 10%
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 50000 and commission greater or equal to 10%
Write the names of salesperson who have made orders in Boston.
Create 3 tables, insert values ( 1 - point ) .

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 Programming Questions!