Suppose that each of the following Update operations is applied directly to the database state shown in Figure 3.6. Discuss all integrity constraints vio- lated by each operation, if any, and the different ways of enforcing these con- straints. a. Insert <'Robert, 'F, 'Scott', '943775543, '1972-06-213 '2365 Newcastle Rd, Bellaire, TX, M, 58000, '888665555, l> into EMPLOYEE. b. Insert <'ProductA, 4, 'Bellaire, 2> into PROJECT. c. Insert <'Production', 4, '943775543, '2007-10-01’> into DEPARTMENT. d. Insert <'677678989', NULL, '40.0'> into WORKS_ON. e. Insert <'453453453, 'John, 'M, '1990-12-12, 'spouse'> into DEPENDENT. f. Delete the WORKS_ON tuples with Essn = '333445555? g. Delete the EMPLOYEE tuple with Ssn = '987654321?. %3D h. Delete the PROJECT tuple with Pname = 'ProductX. i. Modify the Mgr_ssn and Mgr_start_date of the DEPARTMENT tuple with Dnumber = 5 to ʻ123456789' and '2007-10-01', respectively. j. Modify the Super_ssn attribute of the EMPLOYEE tuple with Ssn = '999887777’ to '943775543' k. Modify the Hours attribute of the WORKS_ON tuple with Essn = '999887777’ and Pno = 10 to '5.0.

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
| 3.11. Suppose that each of the following Update operations is applied directly to
the database state shown in Figure 3.6. Discuss all integrity constraints vio-
lated by each operation, if any, and the different ways of enforcing these con-
straints.
a. Insert <'Robertť, 'F, 'Scott', '943775543', '1972-06-21', '2365 Newcastle Rd,
Bellaire, TX, M, 58000, '888665555, 1> into EMPLOYEE.
b. Insert <'ProductA', 4, 'Bellaire', 2> into PROJECT.
c. Insert <'Production', 4, '943775543', '2007-10-01’> into DEPARTMENT.
d. Insert <677678989', NULL, '40.0> into WORKS_ON.
e. Insert <'453453453, 'John', M, '1990-12-12, 'spouse'> into DEPENDENT.
f. Delete the WORKS_ON tuples with Essn = '333445555'.
g. Delete the EMPLOYEE tuple with Ssn = '987654321?.
h. Delete the PROJECT tuple with Pname = 'ProductX'.
i. Modify the Mgr_ssn and Mgr_start_date of the DEPARTMENT tuple with
Dnumber = 5 to ʻ123456789’ and '2007-10-01, respectively.
j. Modify the Super_ssn attribute of the EMPLOYEE tuple with Ssn =
*999887777’ to ʻ943775543'.
k. Modify the Hours attribute of the WORKS_ON tuple with Essn =
'999887777' and Pno = 10 to '5.0’.
%3D
Transcribed Image Text:| 3.11. Suppose that each of the following Update operations is applied directly to the database state shown in Figure 3.6. Discuss all integrity constraints vio- lated by each operation, if any, and the different ways of enforcing these con- straints. a. Insert <'Robertť, 'F, 'Scott', '943775543', '1972-06-21', '2365 Newcastle Rd, Bellaire, TX, M, 58000, '888665555, 1> into EMPLOYEE. b. Insert <'ProductA', 4, 'Bellaire', 2> into PROJECT. c. Insert <'Production', 4, '943775543', '2007-10-01’> into DEPARTMENT. d. Insert <677678989', NULL, '40.0> into WORKS_ON. e. Insert <'453453453, 'John', M, '1990-12-12, 'spouse'> into DEPENDENT. f. Delete the WORKS_ON tuples with Essn = '333445555'. g. Delete the EMPLOYEE tuple with Ssn = '987654321?. h. Delete the PROJECT tuple with Pname = 'ProductX'. i. Modify the Mgr_ssn and Mgr_start_date of the DEPARTMENT tuple with Dnumber = 5 to ʻ123456789’ and '2007-10-01, respectively. j. Modify the Super_ssn attribute of the EMPLOYEE tuple with Ssn = *999887777’ to ʻ943775543'. k. Modify the Hours attribute of the WORKS_ON tuple with Essn = '999887777' and Pno = 10 to '5.0’. %3D
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 11 images

Blurred answer
Knowledge Booster
Data Recovery Approaches
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
  • SEE MORE 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