Assuming there is a table named payroll, with 1000 rows of data. The table contains attributes staffid (as primary key with values between 1001 and 2000), allowance, and salary. CREATE OR REPLACE TRIGGER trg_salary BEFORE INSERT OR UPDATE OF salary ON payroll FOR EACH ROW BEGIN END; DBMS_OUTPUT.PUT_LINE (`Payroll table changed.'); IF UPDATING THEN ELSE DBMS_OUTPUT.PUT_LINE(New salary: || :NEW.salary); DBMS_OUTPUT.PUT_LINE(ID:"||:NEW.staffid); DBMS_OUTPUT.PUT_LINE(Allowance:||:NEW.allowance); DBMS_OUTPUT.PUT_LINE(Salary:||:NEW.salary); END IF; Given a database trigger as presented above, with the assumption of SET SERVEROUTPUT ON command is enabled, state 'True' or 'False' for each of the following statements: ✓ Trigger trg_salary will be fired after a row is deleted from the payroll table. A. True ✓ Message 'Payroll table changed." will be displayed ONE THOUSAND (1000) times before a valid SQL statement UPDATE employee SET increment = 1.05 is successfully executed. B. False ✓ Message 'New salary: 7500' will be displayed before a valid SQL statement INSERT INTO payroll values (12, 100.00, 7500.00) is successfully executed. ✓ Message Payroll table changed." will be displayed before a valid SQL statement INSERT INTO payroll values (12, 100.00, 5500.00) is successfully executed.
Assuming there is a table named payroll, with 1000 rows of data. The table contains attributes staffid (as primary key with values between 1001 and 2000), allowance, and salary. CREATE OR REPLACE TRIGGER trg_salary BEFORE INSERT OR UPDATE OF salary ON payroll FOR EACH ROW BEGIN END; DBMS_OUTPUT.PUT_LINE (`Payroll table changed.'); IF UPDATING THEN ELSE DBMS_OUTPUT.PUT_LINE(New salary: || :NEW.salary); DBMS_OUTPUT.PUT_LINE(ID:"||:NEW.staffid); DBMS_OUTPUT.PUT_LINE(Allowance:||:NEW.allowance); DBMS_OUTPUT.PUT_LINE(Salary:||:NEW.salary); END IF; Given a database trigger as presented above, with the assumption of SET SERVEROUTPUT ON command is enabled, state 'True' or 'False' for each of the following statements: ✓ Trigger trg_salary will be fired after a row is deleted from the payroll table. A. True ✓ Message 'Payroll table changed." will be displayed ONE THOUSAND (1000) times before a valid SQL statement UPDATE employee SET increment = 1.05 is successfully executed. B. False ✓ Message 'New salary: 7500' will be displayed before a valid SQL statement INSERT INTO payroll values (12, 100.00, 7500.00) is successfully executed. ✓ Message Payroll table changed." will be displayed before a valid SQL statement INSERT INTO payroll values (12, 100.00, 5500.00) is successfully executed.
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY