题目
题目

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

多项选择题

RA 1 Consider the following problem statement: List the names of IMDB movies which have a classification of 'pg', or have a director of 'quentin tarantino'. Which of the following relational algebra expressions correspond to this problem statement? (could be more than one) The schema is included again for convenience.  

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

查看解析

标准答案
Please login to view
思路分析
To tackle this question, I’ll break down what each candidate relational-algebra expression is doing and whether it matches the problem statement. Option 1: π_title(σ_classification="pg"(imdb_movie)) ∪ π_title(σ_name="quentin tarantino"(imdb_movie ⨝ imdb_movie.lead_director=imdb_person.id imdb_person)) - The left part, π_title(σ_classification="pg"(imdb_movie)), selects the titles of all movies whose classification is pg directly from imdb_movie. This captures all pg movies. - The right part performs a join between imdb_movie and imdb_person on imdb_movie.lead_director = imdb_person.id, then selects r......Login to view full explanation

登录即可查看完整答案

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

类似问题

更多留学生实用工具

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