Neco 2022 Data Processing Question 43

Practice objective / multiple choice question 43 from the 2022 Neco Data Processing examination.

Neco 2022 Data Processing Objective / Multiple Choice Medium Difficulty
Question 43 NECO • 2022 • DATA_PROCESSING • objective

The relation **Employees**(EmpID, DeptID, Salary, Age) contains 1 200 tuples. - There are 10 departments, each containing the same number of employees. - Salary distribution: 30 % earn less than \(\text{₦}50\,000\), 50 % earn between \(\text{₦}50\,000\) and \(\text{₦}100\,000\), and 20 % earn more than \(\text{₦}100\,000\). - Age distribution: 40 % are under 30 years, 35 % are between 30 and 45 years, and 25 % are over 45 years. Assuming that salary and age categories are independent, (a) How many employees earn between \(\text{₦}50\,000\) and \(\text{₦}100\,000\) **and** are over 45 years old? (b) Write a relational algebra expression that retrieves the **EmpID** of those employees.

Answer Options

Correct Answer A. 150 employees; \(\pi_{EmpID}(\sigma_{Salary \ge 50000 \land Salary \le 100000 \land Age > 45}(Employees))\)
B. 150 employees; \(\pi_{EmpID}(\sigma_{Salary > 50000 \land Salary < 100000 \land Age > 45}(Employees))\)
C. 120 employees; \(\pi_{EmpID}(\sigma_{Salary \ge 50000 \land Salary \le 100000 \land Age > 45}(Employees))\)
D. 180 employees; \(\pi_{EmpID}(\sigma_{Salary \ge 50000 \land Salary \le 100000 \land Age \ge 45}(Employees))\)
Correct Answer
A
Correct Option:
150 employees; \(\pi_{EmpID}(\sigma_{Salary \ge 50000 \land Salary \le 100000 \land Age > 45}(Employees))\)

About This Question

This is Neco 2022 Data Processing Question 43. It is one of the objective questions from the 2022 Neco Data Processing examination.

Difficulty level: Medium .

Master the Exam!

You've seen a preview, but there are thousands more questions plus AI tutor to break down complex solutions.

Unlock Full Access Available for Android & Windows
Chat with Support