Bird
0
0

What is the main purpose of using CREATE INDEX in a database?

easy📝 Conceptual Q11 of 15
SQL - Indexes and Query Performance
What is the main purpose of using CREATE INDEX in a database?
ATo speed up data retrieval by creating shortcuts on columns
BTo delete rows faster from a table
CTo backup the database automatically
DTo encrypt the data stored in the table
Step-by-Step Solution
Solution:
  1. Step 1: Understand what an index does

    An index creates a shortcut to quickly find data in a column without scanning the whole table.
  2. Step 2: Identify the main benefit

    This shortcut speeds up data retrieval, especially for searches and sorts.
  3. Final Answer:

    To speed up data retrieval by creating shortcuts on columns -> Option A
  4. Quick Check:

    CREATE INDEX improves search speed [OK]
Quick Trick: Indexes speed up searches by creating shortcuts [OK]
Common Mistakes:
  • Thinking indexes speed up data deletion
  • Confusing indexes with backups
  • Believing indexes encrypt data

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes