CS FundamentalsHardGATE CS · PSU (ISRO/BARC)
R(A, B) has 120 tuples and S(B, C) has 40 tuples, where B is a key of neither relation. What are the minimum and maximum possible numbers of tuples in R ⋈ S?
- A. min 40, max 120
- B. min 0, max 4800
- C. min 0, max 40
- D. min 120, max 120
Correct answer: B. min 0, max 4800
With no keys, all tuples might share one B value, giving 120 × 40 = 4800; or no values match, giving 0.
More DBMS and SQL questions
- R(A, B, C, D, E) has functional dependencies D → A, AB → CD, BE → C, BC → E. What is the closure {BC}⁺?
- A file of 5000 blocks is sorted by external merge sort with M = 21 buffer blocks (sorted runs of M blocks are created in pass 0, then (M −…
- Table Route(src, dst, cost) rows: ('A', 'B', 5), ('B', 'C', 4), ('A', 'C', 12), ('C', 'D', 3), ('B', 'D', 9), ('D', 'A', 2). What does…
- Table Acct(no, branch, bal) rows: (101, 'Agra', 500), (102, 'Agra', 1500), (103, 'Bhopal', 700), (104, 'Bhopal', 700), (105, 'Cuttack'…
- Which statement about snapshot isolation (SI) is correct?
- R(A, B) has 300 tuples and S(B, C) has 50 tuples, where S.B is the primary key of S and R.B is a foreign key referencing it (NOT NULL)…