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

. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!