Write a query. See the rows.

Run real SQL against a practice bakery in your browser. The first lesson is free and takes about a minute.

See the full course

  • Try the first drills
  • No install
  • Instant check

How it works

  1. 1

    Read a short task.

    Each lesson is a question about a small shop database.

  2. 2

    Write a query.

    Type SELECT in the editor. PostgreSQL runs it in your browser.

  3. 3

    See the rows.

    Your result is checked at once. Stuck? Ask for a hint.

0 de 34 lições concluídas

Fundamentos

Grátis: leia, ordene e filtre uma tabela.

Resumos

Contagem, soma e média, por grupo.

Junções

Combine tabelas pelas suas chaves, inclusive as linhas que não têm correspondência.

Mais consultas

CASE, subconsultas, funções de janela, UNION e funções de texto e data.

Alterando dados

Adicione, altere e remova linhas com segurança.

Do Excel

Pesquisas, SOMASE, tabelas dinâmicas e matrizes dinâmicas, em SQL.

Banco de dados de funcionários

Um segundo banco de dados de prática, de uma pequena empresa: organogramas, salários, datas de contratação e molduras de janela.

Prática de entrevista

As perguntas que sempre voltam: N-ésimo maior, top por grupo, duplicatas e variação no tempo.

Estudo de caso

Responda a perguntas reais sobre um mês de vendas.

Write a query. See the rows.

SQL DailyDrills is practice in the browser: you type SQL, press Check, and see the result table. Nothing to install. The first lesson is free and takes about a minute.

Perguntas frequentes

Where does the SQL run?

In your browser, on PostgreSQL (PGlite). Queries never leave your computer. The core of SQL is the same in MySQL, SQL Server and SQLite; the reference pages point out where they differ.

What data am I querying?

A small bakery for most lessons: products, orders and customers. Later lessons use a small company database for employees and org charts.

É mesmo gratuito?

The first 3 lessons are free to try, with no account and no credit card. Sign up free to continue; Pro unlocks the rest of the course.

Preciso de uma conta?

Not for the first exercises. Try those in the browser; create a free account when you want to continue.

See also the guides and the SQL reference.

Write a query. See the rows.

Start the first drill