Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi I need help with MySQL The script must be rerunnable, each time producing the correct results without any errors. Create a re-runnable script that

Hi I need help with MySQL

image text in transcribed

The script must be rerunnable, each time producing the correct results without any errors.

Create a re-runnable script that creates a table (specified below) and then populates it with some specific values. 10.5 pts a. The new table's name is MyProducts b. Make sure to drop it if it already exists c. The table has three columns: i. MyProductsld which is the primary key, an identity and does not allow nulls ii. Name which is a NVARCHAR(40) and does not allow nulls ii. UnitPrice which is a MONEY data type and does not allow null values d. Insert a row with the following values i. The MyProductsld must be5 ll. The name of the product is: Golden Product ii. The unit price for the product is $999.99 Insert the first 10 rows from the Northwind Products table. Ensure the rows have MyProductld values of 11- 20, not their original values of 1-10. Use a query with an INSERT statement to populate these rows into the MyProducts table. e. Create a re-runnable script that creates a table (specified below) and then populates it with some specific values. 10.5 pts a. The new table's name is MyProducts b. Make sure to drop it if it already exists c. The table has three columns: i. MyProductsld which is the primary key, an identity and does not allow nulls ii. Name which is a NVARCHAR(40) and does not allow nulls ii. UnitPrice which is a MONEY data type and does not allow null values d. Insert a row with the following values i. The MyProductsld must be5 ll. The name of the product is: Golden Product ii. The unit price for the product is $999.99 Insert the first 10 rows from the Northwind Products table. Ensure the rows have MyProductld values of 11- 20, not their original values of 1-10. Use a query with an INSERT statement to populate these rows into the MyProducts table. e

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

Web Database Development Step By Step

Authors: Jim Buyens

1st Edition

0735609667, 978-0735609662

More Books

Students also viewed these Databases questions

Question

1. If your script has a villain, are his motivations clear?

Answered: 1 week ago