Question: write a function to calculate and return the amount of a salesman is making his/her commission rate stored in the employee table. HINT: You must

write a function to calculate and return the amount of a salesman is making his/her commission rate stored in the employee table. HINT: You must pass the employee name and sales amount, and the function returns the commission amount calculated based on the commission rate stored table. The table was created using:

CREATE TABLE employee(

empname VARCHAR2(20) PRIMARY KEY

,startdate DATE NO NULL

,commissionrate NUMBER (3,1)

,title VARCHAR2(26)

,manager VARCHAR2(20) REFERENCES employee (empname)

Step by Step Solution

3.43 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Python import sqlite3 def calculatecommissionempname salesamount Est... View full answer

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!