题目
题目

INFO20003_2025_SM2 Exam: Database Systems (INFO20003_2025_SM2)- Requires Respondus LockDown Browser

多项选择题

RA2 Consider the following SQL: SELECT critic_score FROM rottentomatoes_movie NATURAL JOIN imdb_to_rottentomatoes NATURAL JOIN imdb_movie WHERE imdb_movie.year = '2022'; In the context of the previous schema for the netflix movie review database schema, which of the following Relational Algebra expressions represent the same resultset as the above SQL? (could be more than one) The schema is included again for convenience.

选项
A.
B.
C.
D.
题目图片
查看解析

查看解析

标准答案
Please login to view
思路分析
The question asks which Relational Algebra expressions represent the same result as the given SQL query: SELECT critic_score FROM rottentomatoes_movie NATURAL JOIN imdb_to_rottentomatoes NATURAL JOIN imdb_movie WHERE imdb_movie.year = '2022'; Key observations to reason about: - The SQL uses NATURAL JOINs among rottentomatoes_movie, imdb_to_rottentomatoes, and imdb_movie. A natural join implicitly joins on all common attribute names among the joined relations. - After joining, it filters for imdb_movie.year = '2022' and then projects only the critic_score attribute. - In Relational Algebra, the natural join operator can be represented as the join operator with an implicit equality condition on all common a......Login to view full explanation

登录即可查看完整答案

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

更多留学生实用工具

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