Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a table called Customer_Archives that has the same columns as customers table and it also has a column that is called Deletion_Date Customers colum

Create a table called Customer_Archives that has the same columns as customers table and it also has a column that is called Deletion_Date

Customers colum has this atribute

(Customer_id Number(10), Customer_FirstName Varchar(50), Customer_LastName Varchar(50), Customer_Address Varchar(255), Customer_City Varchar(50), Customer_State Varchar (2), Customer_Zip Varchar (20), Customer_Phone Varchar (30), Customer_Fax Varchar (30)

Create a Trigger on table Customers so that every time a record is deleted from table customers this same record is inserted in table Customer_Archives with the current date as Deletion_Date

Now insert a new customer into table Customers and then delete it. Is the record inserted correctly into table Customers_Archive?

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_2

Step: 3

blur-text-image_3

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

AutoCAD Database Connectivity

Authors: Scott McFarlane

1st Edition

0766816400, 978-0766816404

More Books

Students also viewed these Databases questions

Question

What is management growth? What are its factors

Answered: 1 week ago

Question

=+you think is being taxed when more money is printed? Why?

Answered: 1 week ago