Tutorial Relational Algebra: All The Relation Algebra Expressions Base On The Following Database Schema
Tutorial Relational Algebra: All The Relation Algebra Expressions Base On The Following Database Schema
2012
All the Relation Algebra expressions base on the following database schema.
Page 1 of 3
2012
Retrieve the names of employees who have no dependents. ALL_EMPS SSN(EMPLOYEE) EMPS_WITH_DEPS(SSN) ESSN(DEPENDENT) EMPS_WITHOUT_DEPS (ALL_EMPS - EMPS_WITH_DEPS) RESULT LNAME, FNAME (EMPS_WITHOUT_DEPS * EMPLOYEE)
Retrieve the names of employees who have no dependents. Lname, Fname(( Ssn (EMPLOYEE) Ssn ( Essn (DEPENDENT))) EMPLOYEE)
Find the names of employees who work on all the projects controlled by dept. no. 5 Dept5_Projs(Pno)<- Pnumber( Dnum=5(Project))
Page 2 of 3
2012
List the names of managers who have at least one dependent. Mgrs(SSN) <- MGRSSN(Department) Emps_with_deps(SSN)<- ESSN(Dependent) Mgrs_with_deps <- (Mgrs Emps_with_deps) Result <- Lname, Fname (Mgrs_with_deps*Employee)
Page 3 of 3