Gradient LabSign up free

Home / GATE DA / 2024 / Q.31

GATE DA 2024, Q.31: Rows returned by a join on Raider and Team

DatabasesSQL join with filters1 markNumerical answer

The question

Raider(ID, Name, Raids, RaidPoints): (1, Arjun, 200, 250), (2, Ankush, 190, 219), (3, Sunil, 150, 200), (4, Reza, 150, 190), (5, Pratham, 175, 220), (6, Gopal, 193, 215). Team(City, ID, BidPoints): (Jaipur, 2, 200), (Patna, 3, 195), (Hyderabad, 5, 175), (Jaipur, 1, 250), (Patna, 4, 200), (Jaipur, 6, 200). How many rows does the query return?

SELECT *
FROM Raider, Team
WHERE Raider.ID=Team.ID AND City="Jaipur" AND
RaidPoints > 200;

Checking your access…

Source: official GATE DA 2024 question paper and answer key (IISc Bengaluru). The question is lightly reworded; every number and option is kept.