Answered step by step
Verified Expert Solution
Question
1 Approved Answer
solve all the 5 questions. Thank you (c) Consider the following relational database: EMPLOYEE (e-name, street, city) COMPANY (c-name, city) For each of the following
solve all the 5 questions. Thank you
(c) Consider the following relational database: EMPLOYEE (e-name, street, city) COMPANY (c-name, city) 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 the 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. iw. 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 w. Assume the companies may be located in several cities. Find all companies located in every city in whi State Bank of India' is also located. WORKS FOR (e-name, c-name, salary) MANAGEDBY (e-name, m-name) 2+(1.5+1.5) +5 x (0.5x 4)] -n (A). r2(A),wl (B),W3(C), r2(C), r4 (B), w (D), ua(E), r5(D),w5(B) on five consider the schedule SIStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started