Question: Database using Relational Calculus Use the following schema to answer the following question in TRC & DRC TRC : Tuple Relational Calculus DRC: Domain Relational

Database using Relational Calculus

Database using Relational Calculus Use the following schema to answer the following

Use the following schema to answer the following question in TRC & DRC TRC : Tuple Relational Calculus DRC: Domain Relational Calculus BiLp Lovee (eld, name oIIice Manager (eid, mid) Each employee has a unique key, eid. An employee may have several manag- ers, who are, in turn, employees: both attributes eid and mid in Manager(eid, mid) are foreign keys to Employee 1. Write a query that retrieves all employees that have two or more managers Your query should return the eid's and the names. 2. An independent employee is an employee without a manager. (For example, the CEO is independent.) Write a query that retrieves all independent employ- ees; you should return their eid and their names 3. Retrieve the office of all managers of the employee called 'Alice'. If there are multiple employees called Alice, or if one of them has several managers, you have to return all their offices 4. Find all managers for which all the employees they manage share the same office. Your query should return their eid their name, and the office where all their managed people are located 5. A manager is an employee who manages at least one other employee. A second- level manager is a manager who manages only managers. Write a query to re turn all second-level managers; your query should return their eid's and their names

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!