Computer Science EngineeringVery hard
R(A,B) has 20 tuples and S(B,C) has 30 tuples. B is the primary key of S and a foreign key in R. What is the maximum number of tuples in the natural join R join S?
- A. 30
- B. 20
- C. 50
- D. 600
Correct answer: B. 20
Each tuple of R matches exactly one tuple of S via the key, so the join has at most 20 tuples.
Practise more OS, DBMS, Networks & Computer Architecture (ISRO CS) questionsOS, DBMS, Networks & Computer Architecture (ISRO CS): notes and key points
More OS, DBMS, Networks & Computer Architecture (ISRO CS) questions
- Basic two-phase locking guarantees
- TCP slow start begins with cwnd = 1 MSS and doubles each RTT with no losses. What is cwnd after 4 RTTs?
- The OSPF routing protocol computes routes using
- A 10 Mbps link has a one-way propagation delay of 10 ms. How many bits are in flight on the link when it is fully used in one direction?
- To correct up to 2 bit errors in a received codeword, the code must have a minimum Hamming distance of at least
- A counting semaphore is initialized to 10. After 6 wait (P) operations and 4 signal (V) operations have completed, its value is