Which of the following best describes the selection operation in relational algebra?
Think about filtering data based on conditions.
The selection operation filters rows that meet a specific condition, returning only those rows.
Which SQL clause corresponds to the selection operation in relational algebra?
It filters rows before grouping or ordering.
The WHERE clause filters rows based on conditions, just like selection in relational algebra.
Given a table Employees with columns EmpID, Name, and Salary, what will be the result of the selection operation σSalary > 50000(Employees)?
Selection filters rows based on the condition.
The selection operation returns rows where the salary is greater than 50000.
Consider the selection operation σAge > 30 AND Department = 'Sales'(Employees). What does this operation return?
AND means both conditions must be true.
The selection returns only employees who satisfy both conditions simultaneously.
If a relation R has 1000 rows, and the selection condition is very restrictive so that only 10 rows satisfy it, what is the cardinality (number of rows) of the result of the selection operation σcondition(R)?
Selection filters rows that meet the condition.
The selection returns only the rows that satisfy the condition, so the result has 10 rows.