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.43.After completing the coding task, export the code for submission.4Add 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.1Part-2NoTaskMark(s)/51.Import Canadian_pt.sql file to create the table in the database you created2.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'),43.After completing the coding task, export the code for submission.4Add 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

Recommended Textbook for

Semantics Of A Networked World Semantics For Grid Databases First International Ifip Conference Icsnw 2004 Paris France June 2004 Revised Selected Papers Lncs 3226

Authors: Mokrane Bouzeghoub ,Carole Goble ,Vipul Kashyap ,Stefano Spaccapietra

2004 Edition

3540236090, 978-3540236092

More Books

Students also viewed these Databases questions

Question

1. Are my sources credible?

Answered: 1 week ago

Question

3. Are my sources accurate?

Answered: 1 week ago

Question

1. Is it a topic you are interested in and know something about?

Answered: 1 week ago