Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider the following schema for a COMPANY database: EMPLOYEE ( Fname , Lname, Ssn , Address, Super - ssn , Salary, Dno ) DEPARTMENT (
Consider the following schema for a COMPANY database:
EMPLOYEE Fname Lname, Ssn Address, Superssn Salary, Dno
DEPARTMENT Dname Dnumber, Mgrssn Mgrstartdate
DEPTLOCATIONS Dnumber Dlocation
PROJECT Pname Pnumber, Plocation, Dnum
WORKSON Ess Pno, Hours
DEPENDENT Essn Dependentname, Sex, Bdate, Relationship
Write the queries in relational algebra.
i Retrieve the name and address of all emp loyees who work for' Sales' department.
ii Find the names of employees who work on all the projects controlled by the department
number
iii List the names of all employees with two or more dependents.
iv Retrieve the names of employees who have no dependents.
Step 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