Question: Consider the relational database given below. Give an expression in the relational algebra to express each of the following queries: Employee (employee-id, employee-name, age, street,

 Consider the relational database given below. Give an expression in the

Consider the relational database given below. Give an expression in the relational algebra to express each of the following queries: Employee (employee-id, employee-name, age, street, city, branch-code). Works (employee-name, companyname, branch-name, salary) Company (companyname, city), Branch(branch-code, branch-name) (1) Find the names of all employees in this database who live in the same city as the company for which they work. (1) Find the names, street address, and cities of residence of all employees who work for HCL and earn more than $10,000 per annum (i)Display employees' details whose branch code is between 1 to 5. (iv) Find an average age of all employees whose branch code is 3. (V) Change age of employee to 25 whose employee no is 6

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!