Given the relations
- employee (name, salary, dept-no), and
- department (dept-no, dept-name,address),
Which of the following queries cannot be expressed using the basic relational algebra operations ?
View worked solution
Answer: C
Basic relational algebra operations do not support aggregation functions such as SUM, AVG, COUNT, MIN, or MAX. These require the extended relational algebra operator (the grouping and aggregation operator, ).
Let's analyze each option:
- Option A: Department address of every employee can be expressed as:
- Option B: Employees whose name is the same as their department name can be expressed as:
- Option C: The sum of all employees' salaries requires the aggregation operator (i.e., ), which is not a basic relational algebra operation.
- Option D: All employees of a given department (e.g., department 'D101') can be expressed as:
Therefore, the query in Option C cannot be expressed using basic relational algebra operations.
Free practice · Your answers on this page are not saved.
