Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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,

image text in transcribed
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 (11) 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions

Question

Differentiate 3sin(9x+2x)

Answered: 1 week ago