Question: 1. Write a SQL procedure to increase the sales tax to a certain percentage, and the states' names started with the letter A. Please find

1. Write a SQL procedure to increase the sales tax to a certain percentage, and the states' names started with the letter A. Please find the last digit of your phone number; if it is 4, increase the tax rate by 4%. If the last digit is 5 for another student, then increase tax by 5% and so on.

2. Write a sql trigger to ensure the upper case of the provincial or territorial iso code/shortcode. Another way is if someone gives input ON as on, the trigger will turn the input to ON. Try the following values to ensure the trigger is working (4,'New Brunswick', 'nb'), (5,'Manitoba', 'mb'), (6,'British Columbia','bc'), (7,'Prince Edward Island','pe')

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!