Relational Schema · Databases
18 questions · asked in 13 of 27 years (2000–2026)
MCQ 10 · MSQ 3 · NAT 51-mark 13 · 2-mark 5
2000Questions per year2026
Questions 6–10 of 18
Which one of the options given below refers to the degree (or arity) of a relation in relational database systems?
Answer: (A)
Degree (arity) means how many attributes (columns) the relation schema has.
The count of tuples (rows) is named the cardinality.
Answer: Number of attributes of its relation schema
The count of tuples (rows) is named the cardinality.
Answer: Number of attributes of its relation schema
Consider a relation with the following three functional dependencies.
The number of superkeys in the relation is .
The number of superkeys in the relation is .
Answer: 8
Attributes A and B are never on the right side of any FD. So every key must have both A and B.
Closure of AB: . So AB is the only candidate key.
Superkeys are AB together with any subset of {C, D, E}: .
Answer: 8
Closure of AB: . So AB is the only candidate key.
Superkeys are AB together with any subset of {C, D, E}: .
Answer: 8
Consider the relation with the following functional dependencies.
Consider the decomposition of the relation R into the constituent relations according to the following two decomposition schemes.
Which one of the following options is correct?
Consider the decomposition of the relation R into the constituent relations according to the following two decomposition schemes.
Which one of the following options is correct?
Answer: (A)
D1: Join the relations one at a time. At each step the common attributes must form a key of one side.
- Join (P, Q, S, T) with (P, T, X) on PT: we have , so PT X holds. True
- Join the result with (Q, Y) on Q: holds. True
- Join the result with (Y, Z, W) on Y: holds. True
So D1 is lossless.
D2: The relation (T, X) has no attribute in common with the other relations. Joining it gives a cross product so D2 is lossy.
Answer: D1 is lossless, but D2 is lossy
- Join (P, Q, S, T) with (P, T, X) on PT: we have , so PT X holds. True
- Join the result with (Q, Y) on Q: holds. True
- Join the result with (Y, Z, W) on Y: holds. True
So D1 is lossless.
D2: The relation (T, X) has no attribute in common with the other relations. Joining it gives a cross product so D2 is lossy.
Answer: D1 is lossless, but D2 is lossy
Consider the following statements S1 and S2 about the relational data model:
S1: A relation scheme can have at most one foreign key.
S2: A foreign key in a relation scheme R cannot be used to refer to tuples of R.
Which one of the following choices is correct?
S1: A relation scheme can have at most one foreign key.
S2: A foreign key in a relation scheme R cannot be used to refer to tuples of R.
Which one of the following choices is correct?
Answer: (D)
Let us check both statements one by one.
- S1: a relation can have more than one foreign key (for example, Enrolment(studentId, courseId) points to two tables) so S1 is FALSE.
- S2: a foreign key can point to the same relation (for example, Employee.managerId Employee.empId) so S2 is FALSE.
Answer: Both S1 and S2 are false
- S1: a relation can have more than one foreign key (for example, Enrolment(studentId, courseId) points to two tables) so S1 is FALSE.
- S2: a foreign key can point to the same relation (for example, Employee.managerId Employee.empId) so S2 is FALSE.
Answer: Both S1 and S2 are false
Which of the following is NOT a superkey in a relational schema with attributes V,W, X, Y, Z and primary key V Y?
Answer: (B)
A superkey has to include the full primary key {V, Y}.
VWXZ has V but does not have Y so it is not a superkey. Every other option has both V and Y.
Answer: VWXZ
VWXZ has V but does not have Y so it is not a superkey. Every other option has both V and Y.
Answer: VWXZ
Keep practising
Topics in Databases
ER Model
Relational SchemaYou are here
Relational AlgebraTuple CalculusSQLIntegrity ConstraintsNormal FormFile SystemTransaction