Supposed that each of the following Update operations is applied directly to the database state shown...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Supposed that each of the following Update operations is applied directly to the database state shown in the Figure 3.6. Discuss all integrity constraints violated by each operation, if any, and the different ways of enforcing these constraints. Please work on only problems b, c, f, g, and i. 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'. 2. Consider the following relations for a database that keeps track of bank customers and their accounts: BRANCH (Branch Name, Assets, Bcity) CUSTOMER (CustName, SSN, Street, City) DEPOSIT (Branch_name, AcctNo, CustName, Balance) LOAN (Branch_name, LoanNo, CustName, Amount) Specify the foreign keys for this schema. EMPLOYEE Fname Minit Lname Ssn Bdate DEPARTMENT Dname Dnumber Mgr_ssn Mgr_start_date DEPT LOCATIONS Dnumber Dlocation PROJECT Pname Pnumber Plocation Dnum Address Sex Salary WORKS ON Essn Pno Hours DEPENDENT Essn Dependent_name Sex Bdate Relationship Super_ssn Dno Figure 3.7 Referential integrity constraints displayed on the COMPANY relational database schema. Figure 3.6 One possible database state for the COMPANY relational database schema. EMPLOYEE Fname Minit Lname Ssn Bdate Address John B Smith 123456789 1965-01-09 731 Fondren, Houston, TX Franklin T Wong 333445555 1955-12-08 638 Voss, Houston, TX Alicia J Zelaya 999887777 1968-01-19 3321 Castle, Spring, TX Jennifer S Wallace 987654321 1941-06-20 291 Berry, Bellaire, TX Ramesh K Narayan 666884444 1962-09-15 975 Fire Oak, Humble, TX Joyce A English 453453453 1972-07-31 5631 Rice, Houston, TX Ahmad V Jabbar 987987987 1969-03-29 980 Dallas, Houston, TX James E Borg 888665555 1937-11-10 450 Stone, Houston, TX DEPARTMENT Dname Research Administration Headquarters Dnumber 5 4 1 Mgr_ssn 333445555 987654321 888665555 Mgr_start_date 1988-05-22 1995-01-01 1981-06-19 Sex Salary Super_ssn Dno M 30000 333445555 M 40000 888665555 F 25000 987654321 4 43000 888665555 F 4 38000 333445555 5 25000 333445555 5 25000 987654321 4 55000 NULL 1 M F M M DEPT_LOCATIONS Dnumber 1 4 5 10 5 5 55 01 Dlocation Houston Stafford Bellaire Sugarland Houston Figure 3.6 One possible database state for the COMPANY relational database schema WORKS ON Essn 123456789 123456789 666884444 453453453 453453453 333445555 333445555 333445555 333445555 999887777 999887777 987987987 987987987 987654321 987654321 888665555 Pno Hours 1 32.5 2 7.5 3 40.0 1 20.0 2 20.0 2 10.0 10.0 10.0 10.0 30 30.0 10 10.0 10 35.0 5.0 20.0 15.0 NULL 3 10 20 30 30 20 20 DEPENDENT Essn 333445555 333445555 333445555 987654321 123456789 123456789 123456789 PROJECT Pname ProductX ProductY ProductZ Computerization Reorganization Newbenefits Dependent_name Alice Theodore Joy Abner Michael Alice Elizabeth Pnumber 1 2 3 10 20 30 Sex F M F M Plocation Bellaire Sugarland Houston Stafford Houston Stafford Dnum 5 5 5 4 1 4 Bdate Relationship 1986-04-05 Daughter 1983-10-25 Son 1958-05-03 Spouse 1942-02-28 Spouse M 1988-01-04 Son F 1988-12-30 Daughter F 1967-05-05 Spouse Supposed that each of the following Update operations is applied directly to the database state shown in the Figure 3.6. Discuss all integrity constraints violated by each operation, if any, and the different ways of enforcing these constraints. Please work on only problems b, c, f, g, and i. 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'. 2. Consider the following relations for a database that keeps track of bank customers and their accounts: BRANCH (Branch Name, Assets, Bcity) CUSTOMER (CustName, SSN, Street, City) DEPOSIT (Branch_name, AcctNo, CustName, Balance) LOAN (Branch_name, LoanNo, CustName, Amount) Specify the foreign keys for this schema. EMPLOYEE Fname Minit Lname Ssn Bdate DEPARTMENT Dname Dnumber Mgr_ssn Mgr_start_date DEPT LOCATIONS Dnumber Dlocation PROJECT Pname Pnumber Plocation Dnum Address Sex Salary WORKS ON Essn Pno Hours DEPENDENT Essn Dependent_name Sex Bdate Relationship Super_ssn Dno Figure 3.7 Referential integrity constraints displayed on the COMPANY relational database schema. Figure 3.6 One possible database state for the COMPANY relational database schema. EMPLOYEE Fname Minit Lname Ssn Bdate Address John B Smith 123456789 1965-01-09 731 Fondren, Houston, TX Franklin T Wong 333445555 1955-12-08 638 Voss, Houston, TX Alicia J Zelaya 999887777 1968-01-19 3321 Castle, Spring, TX Jennifer S Wallace 987654321 1941-06-20 291 Berry, Bellaire, TX Ramesh K Narayan 666884444 1962-09-15 975 Fire Oak, Humble, TX Joyce A English 453453453 1972-07-31 5631 Rice, Houston, TX Ahmad V Jabbar 987987987 1969-03-29 980 Dallas, Houston, TX James E Borg 888665555 1937-11-10 450 Stone, Houston, TX DEPARTMENT Dname Research Administration Headquarters Dnumber 5 4 1 Mgr_ssn 333445555 987654321 888665555 Mgr_start_date 1988-05-22 1995-01-01 1981-06-19 Sex Salary Super_ssn Dno M 30000 333445555 M 40000 888665555 F 25000 987654321 4 43000 888665555 F 4 38000 333445555 5 25000 333445555 5 25000 987654321 4 55000 NULL 1 M F M M DEPT_LOCATIONS Dnumber 1 4 5 10 5 5 55 01 Dlocation Houston Stafford Bellaire Sugarland Houston Figure 3.6 One possible database state for the COMPANY relational database schema WORKS ON Essn 123456789 123456789 666884444 453453453 453453453 333445555 333445555 333445555 333445555 999887777 999887777 987987987 987987987 987654321 987654321 888665555 Pno Hours 1 32.5 2 7.5 3 40.0 1 20.0 2 20.0 2 10.0 10.0 10.0 10.0 30 30.0 10 10.0 10 35.0 5.0 20.0 15.0 NULL 3 10 20 30 30 20 20 DEPENDENT Essn 333445555 333445555 333445555 987654321 123456789 123456789 123456789 PROJECT Pname ProductX ProductY ProductZ Computerization Reorganization Newbenefits Dependent_name Alice Theodore Joy Abner Michael Alice Elizabeth Pnumber 1 2 3 10 20 30 Sex F M F M Plocation Bellaire Sugarland Houston Stafford Houston Stafford Dnum 5 5 5 4 1 4 Bdate Relationship 1986-04-05 Daughter 1983-10-25 Son 1958-05-03 Spouse 1942-02-28 Spouse M 1988-01-04 Son F 1988-12-30 Daughter F 1967-05-05 Spouse
Expert Answer:
Answer rating: 100% (QA)
b Insert into PROJECT Integrity Constraints Violated Referential Integrity The foreign key constraint between PROJECT and DEPARTMENT is violated because the Department number 4 does not exist in the D... View the full answer
Related Book For
Fundamentals Of Database Systems
ISBN: 9780133970777
7th Edition
Authors: Ramez Elmasri, Shamkant Navathe
Posted Date:
Students also viewed these programming questions
-
Kendra has been collecting empty bottles and cashing them in for money at regular intervals. She receives 15 cents for each bottle and collects an average of 500 bottles per week. The market rate of...
-
https://academic.oup.com/jcr/article/36/3/478/1847025 I need a summary of this article i put above.
-
Specify queries c, d, and f of Exercise 8.18 in both tuple and domain relational calculus. Exercise 8.18 Consider the LIBRARY relational database schema shown in Figure 8.14, which is used to keep...
-
Air pollution officials in Californias Central Valley have opened a new front in the war against urban sprawl, and regulators and environmental advocates throughout the state are watching closely....
-
Spencer Grant chooses not to sell his shares at the time described in problem 3. He waits, expecting the share price to rise further after the announcement of quarterly earnings. His expectations...
-
A sample of 32 students received the following grades on an exam. a. Does this sample show that the median score for the exam differs from 50? Use a = 0.05 b. Does this sample show that the median...
-
Classify inventoriable and period costs (Learning Objective 4)} Classify each of Georgia-Pacific's costs as either inventoriable product costs or period costs. Georgia-Pacific is a manufacturer of...
-
The latest weather report states that the temperature is 24C and the relative humidity is 50%. (a) Use the psychometric chart to estimate the absolute humidity, humid volume, specific enthalpy,...
-
Q3. Express the following complex numbers in the form x + iy in (a) e-in/4 (b) 6ei27/3 (c) e4+in2 (d) e-i2n + 214n Q4. Derive the formula of de Moivre, cos no + i sin n0 = (cos 0 + i sino)"
-
Design a beam of ASTM A36 steel with allowable bending stress of 160 MPa to support the load shown in Figure P4-33. Assume a standard wide flange beam from Appendix F, or some other source can be...
-
The financial statements of Louis Vuitton are presented in Appendix A. The complete annual report, including the notes to its financial statements, is available at the company's website. Click here...
-
24A. When doing a power flush of an engines cooling system which direction is the flushing water going and why? 24B. Which component must be removed to do a power flush? 24C. Which two methods are...
-
3) Cass SA, a leading wind energy developer, is planning an acquisition of City BV, a cable company. Cass is offering City's shareholders 0.25 and 0.8 shares of Cass per share of City. Current...
-
1. Behavioural control is focused on execution of doing things right. Evaluate two (2) essential elements of behavioural control for effective corporate strategic implementation. Support your...
-
Despite the undeniable upsides of social networking, social media sites track users and sell their information. Savvy business communicators can protect themselves with the following safeguards:...
-
How does beefing up SingPass security with 2FA make egovernment transactions more secure? What are its benefits to end users? 10-52. Will the enhanced security of the SingPass system be able to...
-
The direct method of preparing the operating activities section of the statement of cash flows is preferred by the Financial Accounting Standards Board. True or False True False
-
Citing a scientific article, explain in your own words, how DNA fingerprinting has been used in forensic science to solve crimes and why it may not always be accurate or effective.
-
When a failure occurs, the log is consulted and each operation is either undone or redone. This is a problem because a. Searching the entire log is time consuming b. Many redos are unnecessary c....
-
What is the difference between attributes and elements in XML? List some of the important attributes used to specify elements in XML schema.
-
Name some advantages of the MapReduce/Hadoop technology.
-
Here are two companies: Young corporation and Mature corporation. Young Corporation grows very rapidly, does not pay any dividends and retains all its profits. Mature Corporation stopped growing a...
-
A reverse split is just like a split, but only in a reverse direction. For example, in 1 for 2 reverse split, you receive 1 shares for every 2 shares you hold. How would your answers to the previous...
-
Here is data on the stock prices and returns of General Electric, Boeing and S&P 500 index. Calculate the highlighted cells. A B C D E F G 1 Date GE MONTHLY RETURNS ON GE, BOEING, S&P500, 2000 GE...
Study smarter with the SolutionInn App