Quiz de 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.

Médio 10 perguntas ~6 minutos Aprovação com 80% SQLite

Escolha um modo

Jogando como visitante: entre para guardar seu XP e sua sequência.

Pergunta de exemplo

Pergunta 1 de 10

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

Mostrar a resposta

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.

O que este quiz cobre

  • 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

Perguntas frequentes

Preciso de uma conta?

Não. Qualquer pessoa pode jogar. Entre para guardar seu XP, sequência, badges e histórico.

Posso refazer?

Pode. Sua melhor nota fica salva, e as perguntas e respostas são embaralhadas a cada vez.