Question: Write the following SQL statements for the following: 1) Write an ALTER TABLE statement that adds two new columns to the Products table. Add one
Write the following SQL statements for the following:

1) Write an ALTER TABLE statement that adds two new columns to the Products table.
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.
2) Write an ALTER TABLE statement that modifies the Users table so the FirstName 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 thats longer than 20 characters. It should fail due to the length of the column.
Users Downloads UserlD EmailAddress FirstName LastName DownloadID UseriD DownloadDate FileName ProductID Products ProductiD ProductName
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
