Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Import sales _ tax _ rate.sql and sales _ tax _ rate.txt [ from week - 1 ] to create the tables and data in

Import sales_tax_rate.sql and sales_tax_rate.txt [from week-1] to create the tables and data in your database.
2.
Write a procedure (name the procedure as tax_increase_yourFirstName) 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 student number; if it is 2, increase the tax rate by 2%. If the last digit is 9 for another student, then increase tax by 9% and so on.
4
3.
After completing the coding task, export the code for submission.
4
Add your name and student number at the top of the code file as a comment.
Put necessary comments to explain your code inside the .sql file.
1
Part-2
No
Task
Mark(s)/5
1.
Import Canadian_pt.sql file to create the table in the database you created
2.
Write a trigger (name the trigger as capt_yourFirstName) 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'),
4
3.
After completing the coding task, export the code for submission.
4
Add your name and student number at the top of the code file as a comment.
Put necessary comments to explain your code inside the .sql file.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions