Quiz di SQL: Indexes

This SQL quiz is about indexes, the main tool for making queries fast. You will decide which queries can use an index, what composite and covering indexes do, and when an index is not worth having.

Medio 10 domande ~6 minuti Superato con il 80% SQLite

Scegli una modalità

Stai giocando come ospite: accedi per salvare XP e serie.

Domanda di esempio

Domanda 1 di 10

What does a regular (B-tree) index on a column mainly speed up?

Mostra la risposta

A. Finding rows by that column in WHERE, JOIN and ORDER BY An index is a sorted structure that lets the database jump to matching rows instead of scanning the whole table, which helps lookups, joins and sorting. It does the opposite for writes, which now have to update the index too.

Cosa copre questo quiz

  • What an index speeds up and what it costs
  • Composite indexes and the leftmost-prefix rule
  • Why functions and leading wildcards block an index
  • Covering indexes and low-cardinality columns
  • Unique indexes and CREATE INDEX syntax

Domande frequenti

Serve un account?

No. Chiunque può giocare. Accedi per salvare XP, serie, badge e cronologia.

Posso rifarlo?

Sì. Il tuo miglior punteggio resta salvato, e domande e risposte vengono mescolate ogni volta.