Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Answer 1b and c(all the questions). Thank you (b) Express the division operation as a sequence of few basic relational algebra operations, and verify with

image text in transcribed

Answer 1b and c(all the questions). Thank you

(b) Express the division operation as a sequence of few basic relational algebra operations, and verify with arn example if the sequence of basic operations do the same job as divisio (c) Consider the following relational database: EMPLOYEE(e-name, street, city) COMPANY (c-name, city) 1. (a) What is an alternate key? WORKS FOR(e-name, c-name, salary) MANAGED BY (e-name, m-name) For each of the following queries, give an expression using: relational algebra, tuple relational calculus, domain relational calculus, and SQL i. Find the names of all employees who live in the same city as the company for which they work ii. Find the names of all employees who live in th e same city and on the same street as do their managers. ii. Find the names of all employees who do not work for 'State Bank of India'. Assume that no person can work for more than one companies io. Find the name of all employees who earn more than every employee of 'State Bank of India'. Assume that all people work for at most one company . Assume the companies may be located in several cities. Find all companies located in every city in which State Bank of India' is also located. 2+(1.5+1.5) + 5 x (0.5 x 4))

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 Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions

Question

Excel caculation on cascade mental health clinic

Answered: 1 week ago