Question: . What is the difference between a trigger and a stored procedure? (4 pts) 6. Write statements to create tables according to the following database
. What is the difference between a trigger and a stored procedure? (4 pts) 6. Write statements to create tables according to the following database design. (20 pts) CUSTOMER PURCHASE PurchaselD INTEGER NOT NULL PurchaseDateAndTime TIMESTAMP NULL AmountSpent DECIMAL(7.2) NOT NULL CustomerID INTEGER NULL FK1 H0 CustomerID INTEGER NOT NULL SK FirstName VARCHAR(50) NOT NULL LastName VARCHAR(50) NOT NULL Email VARCHAR(100) NULL AK1. Phone CHAR(10) NULL 7. Assume a table named DOCTOR exists, but we need to add an additional column to the table. Write a statement to add a column named Email with a data type of VARCHAR(100) to the DOCTOR table. The column may allow null values. (8 pts) 8. Write a statement that completely removes a table named CUSTOMER from a database. (4 pts)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
