Questions
Questions

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

Multiple choice

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.  

Options
A.
B.
C.
D.
Question Image
View Explanation

View Explanation

Verified Answer
Please login to view
Step-by-Step Analysis
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

Log in for full answers

We've collected over 50,000 authentic exam questions and detailed explanations from around the globe. Log in now and get instant access to the answers!

Similar Questions

More Practical Tools for Students Powered by AI Study Helper

Join us and instantly unlock extensive past papers & exclusive solutions to get a head start on your studies!