Suppose each of the following operations is applied directly to the above database. Discuss all integrity constraints iolated by each operation if any. ✓ UPDATE Projects SET PID DM120' WHERE pID = 'DM220'; ✓ DELETE FROM Participate WHERE PID- DM220' AND WIDW103¹; ✓ INSERT INTO Projects VALUES ('DM220', 'Detecting DoS', 'Fourth Thousands'); ✓ INSERT INTO Workers VALUES ('W103', 'Ann Greens', '213 University Blvd.', '112-44-9878', '(336)888-3146'); A Reject, it violates the entity integrity constraint. B. Reject, it violates the referential integrity constraint C. Reject, it violates the domain constraint. D. Reject, it violates both the key constraint and referential integrity constraint. E. Reject, it violates the key constraint. F. Accept, it will update tuples in the Projects and Participate relations with p/D-DM22 G. Accept, there are no constraint violations.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Instances of the relations:
Workers
WID
name
W101 Judith Barsi
Marlon Brando
W103
W203 Amy Anderson
W210 John Smith
Projects
pID
DM101
address
1 Lee St. Greensboro NC
15 Main St. Charlotte NC
81121 First St. Hampton VA
9 Precision way Greensboro NC
title
Fake News Detection
DM200 Detecting Phishing Website
DM220 House Price Prediction
DM156 Credit Card Fraud Detection
budget
520,140.00
200,000.00
150,500.00
250,000.00
550
211-22-9999
982-10-1209
721-88-9900
666-22-1111
WID
Participate
pID
DM101 W210
DM200 W203
DM220 W103
DM156 W101
phone
(336)123-1122
(919)685-1992
(336)285-2021
(336)112-8888
role
Data Scientist
Data Technician
Data Technician
Big Data Engineer
started Date
2019-12-10
2018-10-01
2015-06-06
2016-08-08
Transcribed Image Text:Instances of the relations: Workers WID name W101 Judith Barsi Marlon Brando W103 W203 Amy Anderson W210 John Smith Projects pID DM101 address 1 Lee St. Greensboro NC 15 Main St. Charlotte NC 81121 First St. Hampton VA 9 Precision way Greensboro NC title Fake News Detection DM200 Detecting Phishing Website DM220 House Price Prediction DM156 Credit Card Fraud Detection budget 520,140.00 200,000.00 150,500.00 250,000.00 550 211-22-9999 982-10-1209 721-88-9900 666-22-1111 WID Participate pID DM101 W210 DM200 W203 DM220 W103 DM156 W101 phone (336)123-1122 (919)685-1992 (336)285-2021 (336)112-8888 role Data Scientist Data Technician Data Technician Big Data Engineer started Date 2019-12-10 2018-10-01 2015-06-06 2016-08-08
Suppose each of the following operations is applied directly to the above database. Discuss all integrity constraints
violated by each operation if any.
UPDATE Projects SET PID = DM120' WHERE PID = 'DM220';
✓ DELETE FROM Participate WHERE pID = 'DM220' AND WID = 'W103';
✓ INSERT INTO Projects VALUES ('DM220', 'Detecting DoS', 'Fourth Thousands');
INSERT INTO Workers VALUES ('W103', 'Ann Greens', '213 University Blvd.', '112-44-9878', '(336)888-3146' );
A. Reject, it violates the entity integrity constraint.
B. Reject, it violates the referential integrity constraint.
C. Reject, it violates the domain constraint.
D.
Reject, it violates both the key constraint and referential integrity constraint.
E. Reject, it violates the key constraint.
F. Accept, it will update tuples in the Projects and Participate relations with p/D = 'DM220'.
G. Accept, there are no constraint violations.
Transcribed Image Text:Suppose each of the following operations is applied directly to the above database. Discuss all integrity constraints violated by each operation if any. UPDATE Projects SET PID = DM120' WHERE PID = 'DM220'; ✓ DELETE FROM Participate WHERE pID = 'DM220' AND WID = 'W103'; ✓ INSERT INTO Projects VALUES ('DM220', 'Detecting DoS', 'Fourth Thousands'); INSERT INTO Workers VALUES ('W103', 'Ann Greens', '213 University Blvd.', '112-44-9878', '(336)888-3146' ); A. Reject, it violates the entity integrity constraint. B. Reject, it violates the referential integrity constraint. C. Reject, it violates the domain constraint. D. Reject, it violates both the key constraint and referential integrity constraint. E. Reject, it violates the key constraint. F. Accept, it will update tuples in the Projects and Participate relations with p/D = 'DM220'. G. Accept, there are no constraint violations.
Expert Solution
steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Dataset
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education