Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Just because someone leaves the company, a product is discontinued, or other situations that may occur we almost never wish to delete the data completely

Just because someone leaves the company, a product is discontinued, or other situations that may occur we almost never wish to delete the data completely from a database. On the Production.Product table create a trigger such that when someone deletes a product from the product table, the product is not actually deleted. Instead, we wish to set DiscontinuedDate to the current date.

3a) What is the SQL to define this trigger?

3b) Provide example SQL that will cause your trigger to fire.

image text in transcribed

he general form of a trigger is

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

Business Process Driven Database Design With Oracle PL SQL

Authors: Rajeev Kaula

1st Edition

1795532386, 978-1795532389

More Books

Students also viewed these Databases questions

Question

I want solution part II and part III

Answered: 1 week ago

Question

What is cultural tourism and why is it growing?

Answered: 1 week ago