Question

In: Computer Science

You are given the following schemas for a corporation database. The corporation owns several subsidiary companies...

You are given the following schemas for a corporation database. The corporation owns several subsidiary companies (e.g. Disney Corporation owns Lucasfilm Ltd). Managers are also Employees. Answer the following questions using the schemas.

Employee(ssn, name, street, city)

Company(company_name, asset)

Company_Branches(company_name, branch_num, city)

Works(ssn, company_name, branch_num, salary)

Managed_By(ssn, manager_ssn)

6) Does the current design allow us to enforce the constraint that each employee must have a manager (without using external check or triggers)? Why or why not?

7) If the answer to the above is “no,” what changes do we need to make on the schema(s) to allow enforcement of such a constraint?

Solutions

Expert Solution

Given that,

Employee(ssn, name, street, city)

Company(company_name, asset)

Company_Branches(company_name, branch_num, city)

Works(ssn, company_name, branch_num, salary)

Managed_By(ssn, manager_ssn)

6) Does the current design allow us to enforce the constraint that each employee must have a manager (without using external check or triggers)? Why or why not?

The given set of schema cannot enforce the constraint that an employee has a manager, since the schemas

Managed_By(ssn, manager_ssn)

does not link an employee with a manager and the schema Company_Branches does not mandate that a branch should have a manager.

Company_Branches(company_name, branch_num, city)

7) If the answer to the above is “no,” what changes do we need to make on the schema(s) to allow enforcement of such a constraint?

If the schema Managed_By and Company_Branches are modified as

Managed_By(branch_num, manager_ssn)

Company_Branches(company_name, branch_num, city, manger_ssn)

The constraint that an employee must have a manager can be enforced, provided the attribute branch_num in the schema Managed_by is a foreign key referencing the attribute branch_num of the schema Company_Branches and the attribute manger_ssn in the schema Company_Branches is a foreign key referencing the attribute manger_ssn in the Managed_By schema.


Related Solutions

End of Section Problem 12.46 A corporation owns several companies. The strategic planner for the corporation...
End of Section Problem 12.46 A corporation owns several companies. The strategic planner for the corporation believes dollars spent on advertising can to some extent be a predictor of total sales dollars. As an aid in long-term planning, she gathers the following sales and advertising information from several of the companies for 2011 ($ millions). Advertising Sales 12.5 148 3.7 55 21.6 338 60.0 994 37.6 541 6.1 89 16.8 126 41.2 379 a. Construct a 98% confidence interval for...
A corporation owns several companies. The strategic planner for the corporation believes dollars spent on advertising...
A corporation owns several companies. The strategic planner for the corporation believes dollars spent on advertising can to some extent be a predictor of total sales dollars. As an aid in long-term planning, she gathers the following sales and advertising information from several of the companies for 2009 ($ millions). Advertising: 12.5 3.7 21.6 60 37.6 6.1 16.8 41.2 Sales: 148 55 338 994 541 89 126 379 Develop the equation of the simple regression line to predict sales from...
A corporation owns several companies. The strategic planner for the corporation believes dollars spent on advertising...
A corporation owns several companies. The strategic planner for the corporation believes dollars spent on advertising can to some extent be a predictor of total sales dollars. As an aid in long-term planning, she gathers the following sales and advertising information from several of the companies for 2017 (in millons) advertising($12.5 , 3.7 ,21.0 ,60.0 ,37.6 ,6.1 ,17.9 ,41.2 ) sales($141, 55 ,338 ,994 ,541 ,89 ,126 ,379) Construct a 98% confidence interval for the average value of y for the given...
A corporation owns several companies. The strategic planner for the corporation believes amount spent on advertising...
A corporation owns several companies. The strategic planner for the corporation believes amount spent on advertising can to some extent be a predictor of total sales. As an aid in long term planning, she gathers the following sales and advertising information from several of the companies in millions for the year 2019. Advertising 12.5 3.7 21.6 60.0 37.6 6.1 16.8 41.2 Sales 148 55 338 994 541 89 126 379 Develop the equation of the simple regression line to predict...
A corporation owns several companies. The strategic planner for the corporation believes amount spent on advertising...
A corporation owns several companies. The strategic planner for the corporation believes amount spent on advertising can to some extent be a predictor of total sales. As an aid in long term planning, she gathers the following sales and advertising information from several of the companies in millions for the year 2019.                 Advertising          12.5        3.7          21.6        60.0        37.6        6.1          16.8        41.2                 Sales                    148        55           338         994         541         89           126         379 Develop the equation of the simple regression...
Consider the schemas of the following relational database for a company. The company has different departments...
Consider the schemas of the following relational database for a company. The company has different departments at different cities in different states: employee(employee-id, dept-id, name, street-num, street-name, city, state, zip, salary) department(dept-id, dept-name, city, state) manager(manager-id, employee-id) NOTES: manager-id in the manager relation is a foreign key to the employee relation. employee-id in the manager relation is a foreign key to the employee relation. dept-id in the employee relation is a foreign key to the department relation. An employee belongs...
4. Todor owns a U.S. corporation that operates a subsidiary corporation in Bulgaria. Because of the...
4. Todor owns a U.S. corporation that operates a subsidiary corporation in Bulgaria. Because of the world wide tax approach adopted in the United States, all income of the Bulgarian subsidiary is potentially taxed twice, once in Bulgaria and again in the United States. Name and provide a brief description of the adjustments available on the U.S. return of the parent corporation which mitigate the impact of this potential double tax on all Bulgarian income?
Below are several table schemas representing online store delivery system, with attributes and relationships: You will...
Below are several table schemas representing online store delivery system, with attributes and relationships: You will use these to answer the SQL questions 1-7. (2 marks each). Shopper (shopperNo(pk), shopperfName, shopperlName, shopperContact, shopperCity, shopperCcard); Store (storeNo(pk), storeLocation, storeSize) Review (revCode(pk), revDate, revRating, shopperNo, storeNo(fk)) Purchase (purId(pk), purDate, purTime, purQty, purValue, shopperNo(fk), storeNo(fk))) Use SQL statements to answer the following questions: Use SQL statements to create the 2 tables: Purchase and Store with the correct relationship constraints. Add 2 rows: One...
Duke Corporation owns a 70 percent equity interest in Salem Company, a subsidiary corporation. During the...
Duke Corporation owns a 70 percent equity interest in Salem Company, a subsidiary corporation. During the current year, a portion of this stock is sold to an outside party. Before recording this transaction, Duke adjusts the book value of its investment account. What is the purpose of this adjustment? How would the parent company record this transaction?
Walt Disney Corporation owns the following companies: ESPN, ABC News, and Pixar. Based on the materials...
Walt Disney Corporation owns the following companies: ESPN, ABC News, and Pixar. Based on the materials in chapter 7, what is the management tool that Walt Disney can use to assess and determine the financial performance of each firm including market growth to assist with its funding decision for these firms?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT