Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a trigger to update the TotalCount in AnimalNumbers when a row is deleted in Animal table. Instead of NEW.category it will be OLD.category. Also,

Create a trigger to update the TotalCount in AnimalNumbers when a row is deleted in
Animal table. Instead of NEW.category it will be OLD.category. Also, when it's an insert we use
After Insert, with a delete we will use After Delete
Now delete a bird record from the table by typing the following,
DELETE FROM Animal WHERE AnimalID=21;
** write the query to show the AnimalNumbers table where category equals cat or bird only.
Screenshot the command and the output.
**Type the command "show triggers" and screenshot the output through the first 6 columns,
Trigger, Event, Table, Statement, Timing, Created.
image text in transcribed

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

Intranet And Web Databases For Dummies

Authors: Paul Litwin

1st Edition

0764502212, 9780764502217

Students also viewed these Databases questions

Question

Write formal and conversational proposals

Answered: 1 week ago

Question

Recognize the four core purposes service environments fulfill.

Answered: 1 week ago