Question 61
HardR(A, B, C, D) has no functional dependencies other than trivial ones. How many super keys does it have?
- A.
1
- B.
4
- C.
15
- D.
16
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
DBMS
R(A, B, C, D) has no functional dependencies other than trivial ones. How many super keys does it have?
1
4
15
16
Sign up free to see the answer and a step-by-step explanation.
R has 6 attributes and 3 tuples; S has 4 attributes and 5 tuples. How many attributes and tuples does R × S have?
10 attributes, 8 tuples
10 attributes, 15 tuples
6 attributes, 15 tuples
24 attributes, 8 tuples
Sign up free to see the answer and a step-by-step explanation.
R(A, B) has 10 tuples and S(B, C) has 20, and B is a key of S. What is the most tuples R ⋈ S can have?
20
200
30
10
Sign up free to see the answer and a step-by-step explanation.
R(A, B) has 10 tuples and S(B, C) has 20, and B is a key of S and a NOT NULL foreign key in R. How many tuples does R ⋈ S have?
Between 0 and 10
Exactly 10
Exactly 20
200
Sign up free to see the answer and a step-by-step explanation.
Which relational algebra expression finds students who have taken every course?
σ(Enrolled) × Course
Enrolled ⋈ Course
π_{sid, cid}(Enrolled) ÷ π_{cid}(Course)
π_{sid}(Enrolled) − π_{cid}(Course)
Sign up free to see the answer and a step-by-step explanation.
What does the semi-join R ⋉ S return?
R minus S
All tuples of S
R × S
The tuples of R that match at least one tuple of S
Sign up free to see the answer and a step-by-step explanation.
What does the anti-join (R ▷ S) return?
R × S
Tuples in both
The tuples of R that match no tuple of S
All tuples of S
Sign up free to see the answer and a step-by-step explanation.
A left outer join R ⟕ S has how many tuples at least?
As many as R
|R| × |S|
Zero
As many as S
Sign up free to see the answer and a step-by-step explanation.
R has 5 tuples, S has 4, and they are union-compatible with 2 tuples in common. What is |R ∩ S| + |R ∪ S|?
9
5
11
7
Sign up free to see the answer and a step-by-step explanation.
Which operation is NOT one of Codd's basic relational algebra operations?
Set difference
Selection
Division (it can be built from the others)
Projection
Sign up free to see the answer and a step-by-step explanation.