Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3 . Create a table contacts which includes contact _ id ( integer type ) , first _ name ( character data type of length

3. 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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions