Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use the schema SH from SQL Live Use the table SH.promotions. Create a copy of the table SH.promotions Create a new table to populate the

Use the schema SH from SQL Live

Use the table SH.promotions.

Create a copy of the table SH.promotions

Create a new table to populate the cost of promotion for all promotion category (Promo_category). The table should also show the number of promotion that has been advertise using the associated promotion_category.

Display the content of your new table.

The company has decided to reduce the amount of promotion for every category by 20%. Update the table you created and do the following:

a)Add a column call ads_budget

b)Use cursor variable to calculate the amount of the ads_budget for each promotion category and update the table accordingly.

c)You can also do task (b) above without using cursor variable. Add another column called ads_budget2, and update the column accordingly (this time without using cursor variable)

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_2

Step: 3

blur-text-image_3

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

Robo Auditing Using Artificial Intelligence To Optimize Corporate Finance Processes

Authors: Patrick J.D. Taylor, Manish Singh, Nathanael J. L'Heureux

1st Edition

1544511442, 978-1544511443

More Books

Students also viewed these Accounting questions

Question

assess the infl uence of national culture on the workplace

Answered: 1 week ago