Question: Question 3 : Consider the relational database whose schema is shown below: EMPLOYEE ( EMp - ID , E - name, gender, DOB, disability, Edu
Question : Consider the relational database whose schema is shown below:
EMPLOYEE EMpID Ename, gender, DOB, disability, Eduqualif.
COMPANY Companyname, taxID companystatus
Iives EmpIR street, city
Works EmpII Companyname, salary
LOCATEDIN Cdmpanyname, city
The primary key for each relation is denoted by the underlined attribute.
Write the DDL commands to create the above relations.
points
Write the following queries in Relational Algebra and DMI queries:
points
a List the names of all female employees, who work for the company Ruston Bank'.
b List all the companies who are in locatedin the same city of the company 'Ruston Bank'.
c List the name of all employees who work for the 'Ruston Bank.
d List the name, street, and city of all employees who work for the Ruston Bank and earn more than $
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
