CS FundamentalsHardGATE CS · Product placement
R(A, B) has 250 tuples and S(B, C) has 60 tuples, where B is the primary key of R and also the primary key of S. What are the minimum and maximum possible numbers of tuples in R ⋈ S?
- A. min 60, max 250
- B. min 0, max 60
- C. min 0, max 15000
- D. min 250, max 250
Correct answer: B. min 0, max 60
B is unique on both sides, so each tuple matches at most one partner; the join is at most min(250, 60) = 60 and can be 0.
More DBMS and SQL questions
- R(A, B, C, D, E, F) has functional dependencies C → F, D → AC, A → B, F → D. Which of these attribute sets is NOT a superkey of R?
- Table Score(name, pts) rows: ('a', 90), ('b', 85), ('c', 90), ('d', 70), ('e', 85), ('f', 60). In this query's output, what are (r, dr)…
- R(A, B, C, D, E, F) has the set of functional dependencies Σ = {A → D, E → C, AE → CD, F → B, B → F}. Which of the following FDs is NOT in…
- R(A, B, C, D) has functional dependencies D → AB, A → BC. What is the highest normal form R satisfies?
- A B+ tree index uses 512-byte blocks, 8-byte search keys, 4-byte block pointers and 6-byte record (data) pointers. Each leaf also keeps…
- R(A, B) = {(1, 3), (3, 2), (3, 4), (4, 2)} and S(B, C) = {(2, 5), (2, 7), (3, 6), (3, 7), (4, 5)}. How many tuples does σ{R.B ≠ S.B}(R ×…