Q21
Which of the following is NOT a superkey in a relational schema with attributes and primary key ?
Show answer without attempting
Answer: B
GATE CS · 8 questions
8 Databases questions from GATE CS papers (2016), each with the official answer key. Answer any question right here and it is marked straight away, or practise them one at a time.
Answer: B
Answer: D
Answer: B
Answer: A
Answer: A
Answer: A
Answer: C
| scheme_no | district_name | capacity |
|---|---|---|
| 1 | Ajmer | 20 |
| 1 | Bikaner | 10 |
| 2 | Bikaner | 10 |
| 3 | Bikaner | 20 |
| 1 | Churu | 10 |
| 2 | Churu | 20 |
| 1 | Dungargarh | 10 |
with total(name, capacity) as
select district_name, sum(capacity)
from water_schemes
group by district_name
with total_avg(capacity) as
select avg(capacity)
from total
select name
from total, total_avg
where total.capacity ≥ total_avg.capacityAnswer: 2.0
0/80 correct0 marks