Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write an ALTER TABLE statement that adds two new columns to the Products table created above. Add one column for product price that provides

Write an ALTER TABLE statement that adds two new columns to the Products table created above.  Add one column n 6. 7 X 8 alter table products add column price decimal(5,3) not null constraint (9.99), add Product_Date

Write an ALTER TABLE statement that adds two new columns to the Products table created above. Add one column for product price that provides for three digits to the left of the decimal point and two to the right. This column should have a default value of 9.99. Add one column for the date and time that the product was added to the database. Write an ALTER TABLE statement that modifies the Users table created in exercise 2 so the first_name column cannot store NULL values and can store a maximum of 20 characters. Code an UPDATE statement that attempts to insert a NULL value into this column. It should fail due to the NOT NULL constraint. Code another UPDATE statement that attempts to insert a first name that's longer than 20 characters. It should fail due to the length of the column. n 6. 7 X 8 alter table products add column price decimal(5,3) not null constraint (9.99), add Product_Date datetime null;

Step by Step Solution

3.32 Rating (152 Votes )

There are 3 Steps involved in it

Step: 1

Answer For the Products table Add a column for product price ALTER TABLE Products AD... 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

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Databases questions

Question

What is the general form of a ???? statistic?

Answered: 1 week ago

Question

=+a. Describe, in words, the event A and B.

Answered: 1 week ago

Question

=+b. Describe, in words, the event A or B.

Answered: 1 week ago