Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

. What is the difference between a trigger and a stored procedure? (4 pts) 6. Write statements to create tables according to the following database

image text in transcribed
. 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

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

Practical Neo4j

Authors: Gregory Jordan

1st Edition

1484200225, 9781484200223

More Books

Students also viewed these Databases questions