Download presentation
Presentation is loading. Please wait.
1
Relational Algebra Sample Questions
2
Employee Table
3
Questions Question 1 : Determine the name of the employees having salary greater than 2000 Question 2: The name and the department number of employees that are engineers and have a salary greater than 2000 Question 3: Determine the «Managers» and store them in a new schema called «Managers»
4
Other Questions Question 4: Names of all employees that work for «First Bank Corporation». Question 5: Names and cities of all employees that work for «First Bank Corporation». Question 6: Names and street for all employees that work for «First Bank corporation» and earn more than 10000$. Question 7: Names of employees that live in same city as the company they work for.
5
Example EMPLOYEE(NAME, SSN, BDATE, ADDRESS, SALARY) DEPARTMENT(DNAME, DNUMBER, MGRSSN) WORKSIN(ESSN, DNUMBER, HOURS) Write the relational algebra expressions for the following queries: – List the names of employees whose salary is greater than 30000 – List the names of employees who work in “shoes” department – List the names of employees who work in all departments
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.