Quiz de SQL: SELECT & WHERE

This SQL quiz checks the two clauses every query starts with, SELECT and WHERE. You will predict query results, combine conditions with AND and OR, and spot why a query fails.

Fácil 10 perguntas ~5 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 this query return?

CREATE TABLE users (id INTEGER, name TEXT, age INTEGER, city TEXT);
INSERT INTO users VALUES (1, 'Ana', 31, 'Paris'), (2, 'Ben', 25, 'Rome'), (3, 'Cy', 40, 'Paris');
SELECT name FROM users WHERE id = 2;
Mostrar a resposta

A. Ben WHERE id = 2 keeps only Ben's row, and SELECT name returns just the name column. The id is used for filtering but not returned.

O que este quiz cobre

  • Choosing columns with SELECT and SELECT *
  • Filtering rows with WHERE and comparison operators
  • Combining conditions with AND, OR and parentheses
  • Quoting text values with single quotes
  • Why a column alias cannot be used in WHERE

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.