GATE DA 2025 · Question 17 · Database Management and Warehousing · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer
Consider the following three relations:
Car (model, year, serial, color)Make (maker, model)Own (owner, serial)
A tuple in Car represents a specific car of a given model, made in a given year, with a serial number and a color. A tuple in Make specifies that a maker company makes cars of a certain model. A tuple in Own specifies that an owner owns the car with a given serial number. Keys are underlined; (owner, serial) together form key for Own. ( denotes natural join)
π_(owner)(Own (σ_(color=“red”)(Car (σ_(maker=“ABC”)Make))))
Which one of the following options describes what the above expression computes?
- (A) All owners of a red car, a car made by ABC, or a red car made by ABC
- (B) All owners of more than one car, where at least one car is red and made by ABC
- (C) All owners of a red car made by ABC
- (D) All red cars made by ABC
Answer
Answer (C)
Answer from the official GATE DA 2025 answer key.
The step-by-step solution, where available, is part of GATE DA Pro. See what Pro includes