Question: Triggers: First complete the following three steps prior to completing Questions 4 and 5 . Step 1 : Create this table: CREATE TABLE AnimalNumbers (
Triggers:
First complete the following three steps prior to completing Questions and
Step : Create this table:
CREATE TABLE AnimalNumbers
CID char not null primary key,
Category VARCHAR
TotalCount INTEGER engine InnoDB;
Step : Add rows of data:
Insert into AnimalNumbers values
A 'Dog',
B'Cat',
C'Bird',
D'Fish',
E'Reptile',
F'Spider',;
Step : Update the data to reflect how many animals in each category are currently in the
Animal table.
UPDATE AnimalNumbers set TotalCount select count from Animal where category
AnimalNumbers.Category;
give the detail step of how to do this, and show the sql query.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
