Hello all,
I need help with part of an assignment that is due Sunday. This is my first week learning mySQL so clear and simple descriptions will be well liked. Here are the instructions.
a)When adding a customer, add the customer's balance times the sales rep's commission rate to the commission for the corresponding sales rep.
B)When updating a customer, add the difference between the new balance and the old balance multiplied by the sales rep's commission rate to the commission for the corresponding sales rep.
c)When deleting a customer, subtract the balance multiplied by the sales rep's commission rate from the commission for the corresponding sales rep.
How do I do this and how will it look in mySQL command line promt?
Thanks for the help.