Topics in Relational Query Languages

Filter by year

Relational Query Languages questions

Q26

GATE DA 2024 DARelational Query LanguagesMCQ1 mark−1/3 if wrong

Report a problem with Q26

What is wrong?
Consider a database that includes the following relations:

Defender(name, rating, side, goals)
Forward(name, rating, assists, goals)
Team(name, club, price)

Which ONE of the following relational algebra expressions checks that every name occurring in Team appears in either Defender or Forward, where ϕ\phi denotes the empty set?
Show answer without attempting

Loading the answer…

Q31

GATE DA 2024 DARelational Query LanguagesNAT1 mark

Report a problem with Q31

What is wrong?
Consider the following two tables named Raider and Team in a relational database maintained by a Kabaddi league. The attribute ID in table Team references the primary key of the Raider table, ID.

Raider
IDNameRaidsRaidPoints
1Arjun200250
2Ankush190219
3Sunil150200
4Reza150190
5Pratham175220
6Gopal193215
Team
CityIDBidPoints
Jaipur2200
Patna3195
Hyderabad5175
Jaipur1250
Patna4200
Jaipur6200
The SQL query described below is executed on this database:
SELECT *
FROM Raider, Team
WHERE Raider.ID=Team.ID AND City=“Jaipur” AND
RaidPoints > 200;
The number of rows returned by this query is ______.
Show answer without attempting

Loading the answer…

0/20 correct0 marks

Related topics in Database Management and Warehousing