Problem Statement
For general-purpose predicates (=, <, <=, BETWEEN, ORDER BY), which index type is usually the default and most versatile?
Explanation
B-tree supports equality, range predicates, and ordered scans, which makes it the standard choice in most engines. Hash is limited to equality. Bitmap is great for low-cardinality analytics in certain systems. Full-text targets language search, not ordinary filters.
Code Solution
SolutionRead Only
CREATE INDEX idx_users_created ON users(created_at);
Practice Sets
This question appears in the following practice sets:
