CS FundamentalsModerateGATE CS · Product placement
A file of 10,000 records is physically ordered on the non-key field dept, which has 500 distinct values. A clustering index on dept has one entry per distinct value pointing to the first block containing it. How many index entries does it have?
- A. 1
- B. 20
- C. 500
- D. 10,000
Correct answer: C. 500
A clustering index is sparse with respect to values: one entry per distinct dept value (500), not per record (dense) and not per block.
More DBMS and SQL questions
- Which expression is equivalent to R ÷ S, where R(A, B) and S(B)?
- Which is a correct reason why testing a schedule for VIEW serializability is rarely done in practice?
- Table Sale(id, rep, region, amt) rows: (1, 'Ira', 'N', 100), (2, 'Jai', 'S', 250), (3, 'Ira', 'S', NULL), (4, 'Kim', 'N', 300), (5, 'Jai'…
- Which statement about ARIES recovery is correct?
- Table Staff(id, name, dept, pay, boss) rows: (1, 'Anu', 'Ops', 40, NULL), (2, 'Bala', 'Ops', 55, 1), (3, 'Chitra', 'Tech', 70, 1), (4…
- R(A, B, C, D, E, F) has functional dependencies F → ABCD, BD → A. What is the highest normal form R satisfies?