Question
Suppose that each of the following Update operations is applied directly to the database state shown in Figure 5.6. Discuss all integrity constraints violated by
Suppose that each of the following Update operations is applied directly to the database state shown in Figure 5.6. Discuss all integrity constraints violated by each operation, if any, and the different ways of enforcing these constraints **Check the attachment below**
a. Insert into EMPLOYEE.
b. Insert into DEPARTMENT.
c. InsertintoDEPENDENT.
d. Delete the WORKS_ON tuples with Essn = 333445555.
e. Modify the Mgr_ssn and Mgr_start_date of the DEPARTMENT tuple with Dnumber = 5 to 123456789 and 2007-10-01, respectively.
f. Modify the Super_ssn attribute of the EMPLOYEE tuple with Ssn = 999887777 to 943775543.
Dno 5 5 Figure 5.6 One possible database state for the COMPANY relational database schema EMPLOYEE Fname Minit Lname San Bdate Address Sex John B Smith 123456789 1965-01-09 731 Fondren, Houston, TX M Franklin T Wong 333445555 1955-12-08 638 Voss, Houston, TX M Alicia Zelaya 999887777 1968-01-19 3321 Castle, Spring. TX F Jennifer S Wallace 987654321 1941-06-20 291 Berry, Bellaire, TX F Ramesh K Narayan 666884444 1962-09-15 975 Fire Oak, Humble, TX M Joyce A English 453453453 1972-07-31 5631 Rice, Houston, TX F Ahmad V Jabbar 987987987 1969-03-29 980 Dallas, Houston, TX M James E Borg 888665555 1937-11-10 450 Stone, Houston, TX M Salary Super son 30000 333445555 40000 888665555 25000 987654321 43000 SB8665555 38000 333445555 25000 333445555 25000 987654321 55000 NULL 4 1 DEPARTMENT Dname Research Administration Headquarters Dnumber 5 Mgr son 333445555 987654321 888665555 Mgr start date 1988-05-22 1995-01-01 1981-06-19 DEPT LOCATIONS Dnumber Dlocation 1 Houston Stafford Bellaire Sugarland 5 Houston 1 Pno Pnumber Dnum 5 1 Hours 32.5 75 40.0 ila PROJECT Pname ProductX Product Productz Computerization Reorganization Newbenefits 3 3 Plocation Bellaire Sugarland Houston Stafford Houston Stafford 2 20.0 20.0 10.0 10 20 30 1 2 WORKS ON Ess 123456789 123456789 666884444 453453453 453453453 333445555 333445555 333445555 333445555 999887777 999887777 987987087 987987087 987654321 987654321 888665555 10 20 10.0 10.0 10.0 30.0 10.0 35.0 Sex F 30 10 DEPENDENT Esen 333445555 333445555 333445555 987654321 123456789 123456789 123456789 30 Dependent name Alice Theodore Joy Abner Michael Alice Elizabeth Bdate 1986-04-05 1983-10-25 1958-05-03 1942-02-28 1988-01-04 1988-12-30 1967-05-05 Relationship Daughter Son Spouse Spouse Son Daughter Spouse M 30 20.0 15.0 NULL F 20 F 2Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started