Medium-EasyApplyRDBMS & SQLMultiple Choice

A query runs slowly. EXPLAIN ANALYZE shows a Sequential Scan on a 10-million-row table for WHERE email = 'alice@example.com'. What is the best fix?

Apply Tests ability to use knowledge in practical scenarios.

Answer Options

AAdd ORDER BY to help the query planner optimize
BCreate a B-Tree index on the email column
CIncrease the server RAM to fit the table in memory
DRewrite the query using a subquery

Want to see the correct answer?

Get the answer with a detailed explanation, plus practice 15+ more RDBMS & SQL questions with adaptive quizzes and timed interviews.

See the Answer on Guru Sishya →

This question is from the RDBMS & SQL topic (Databases).

More RDBMS & SQL Questions