Difficulty: Intermediate
Why is B-Tree the default index over Hash Index?
B-Trees support range queries (e.g., `WHERE age > 18`) and sorting. Hash indexes only support exact equality matches (`WHERE id = 5`).
Indexing, Efficiency
JavaScript is required for the interactive version of this page, including the code playground and progress tracking. Browse all InternHack tutorials.