Question: 1 . Create the database as shown. 2 . Add four people to the person table ( example: insert into person ( name , lastname

1. Create the database as shown.
2. Add four people to the person table
(example:
insert into person (name,lastname) values
('name1','lastname1'),
('name2','lastname2'),
('name3','lastname3'),
('name4','lastname4');
)
3. Add two sets of data to the salary table, one historical and the other current
(example:
insert into salary ([value],[date],id_person) values
(1000,'2020-02-03',1),
(1000,'2020-02-03',2),
(1000,'2020-02-03',3),
(1000,'2020-02-03',4),
(1100,'2021-02-03',1),
(1200,'2021-02-03',2),
(1300,'2021-02-03',3),
(1400,'2021-02-03',4)
;
)
4. Write a trigger for table payout_date_month that automatically adds data to the
value and date fields, the trigger is to be runs after adding values into id_person
and month. Trigger retrieves data from the salary table.
(example:
insert into payout_date_month (id_person,[month]) values (3,12)
)
5. Add another set of data, check if everything is working correctly.
Save the results as scripts on the Platon Solu

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!