📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

A table has 1 million rows and a query filters on Status with only 3 values. What is the likely effect of a B-tree index on Status?

A. Queries will always use the index
B. The table will be deleted
C. Large improvement in all cases
D. Little improvement, because the index does not narrow the result much ✅

Correct Answer: D. Little improvement, because the index does not narrow the result much

Explanation

Low selectivity means most rows match, so scanning may be as fast as using the index.