题目
题目
单项选择题

Which of the following provides a correct relational algebra syntax to answer this question: Retrieve the student id, first name, last name, and major for all students who have GPA higher than 2.4

选项
A.σ GPA>2.4 (π student_id, first_name, last_name, major (STUDENT))
B.σ GPA>2.4 (STUDENT)Xπ student_id, first_name, last_name, major(STUDENT)
C.π student_id, first_name, last_name, major (σ GPA>2.4 (STUDENT))
D.ρ GPA>2.4(STUDENT)
查看解析

查看解析

标准答案
Please login to view
思路分析
We start by understanding the relational algebra task: we need to retrieve four attributes (student_id, first_name, last_name, major) for students whose GPA is greater than 2.4. In relational algebra, this combines selection (σ) to filter based on a condition and projection (π) to choose the required attributes, in the proper order. Option 1: σ GPA>2.4 (π student_id, first_name, last_name, major (STUDENT)) - This applies a projection first (π) to the STUDENT relation, yie......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

类似问题

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!