Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a table contacts which includes contact_id (integer type), first_name (character data type of length 30), last_name (character data type of length 25). a) Create

Create a table "contacts" which includes contact_id (integer type), first_name (character data type of length 30), last_name (character data type of length 25).

a) Create a trigger to insert contact_id, created_by, creation_date into contacts_audit table after inserting rows into contacts table. created_by in contacts_audit table is the full name taken from first_name and last_name of table contacts.

b) Create a trigger to insert contact_id and deletion_date before any row is getting deleted from contacts table.

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

More Books

Students also viewed these Databases questions

Question

What background experience do you have?

Answered: 1 week ago