Formulate the following queries in relational algebra 5.14 List all employees. 5
ID: 3789968 • Letter: F
Question
Formulate the following queries in relational algebra
5.14 List all employees.
5.15 List all the details of employees who are female and born after 1990.
5.16 List all employees who are not managers and are paid more than $1500.
5.17 Produce a list of the names and addresses of all employees who work for the IT department.
5.18 Produce a list of the names of all employees who work on the SCCS project.
5.13 Using relational algebra, produce a report of all employees from the IT and planning departments who are born after 1990. The following tables form part of a database held in an RDBMS Employee (empNo, fName, lName, address, DOB, sex, position, deptNo) Department (deptNo, deptName, mgrEmpNo) Project (projNo, projName, deptNo) WorksOn (empNo, projNo, dateWorked, hoursWorked) contains employee details and empNo is the key where Employee Department contains department details and deptNo is the key. mgrEmpNo identifies the employee who is the manager of the department. There is only one manager for each department. contains details of the projects in each department and the key is projNo (no Project two departments can run the same project). and Workson contains details of the hours worked by employees on each project, and empNo/ projNo dateWorked form the key.Explanation / Answer
5.14)
SELECT * FROM Employee
5.15)
SELECT * FROM Employee
WHERE SEX = "female" AND DOB > 1990
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.