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.

Ukończono 0 z 34 lekcji

Podstawy

Za darmo: czytaj, sortuj i filtruj tabelę.

Podsumowania

Licz, sumuj i uśredniaj w grupach.

Złączenia

Łącz tabele po kluczach, także tych, które nie pasują.

Bardziej zaawansowane zapytania

CASE, podzapytania, funkcje okna, UNION oraz funkcje tekstowe i dat.

Zmiana danych

Bezpiecznie dodawaj, zmieniaj i usuwaj wiersze.

Z Excela

Wyszukiwanie, SUMIF, tabele przestawne i tablice dynamiczne, w SQL.

Baza pracowników

Druga baza do ćwiczeń, mała firma: schemat organizacyjny, pensje, daty zatrudnienia i ramki okna.

Ćwiczenia na rozmowę

Pytania, które wracają w kółko: N-ta najwyższa wartość, najlepsi w grupie, duplikaty i zmiana w czasie.

Studium przypadku

Odpowiedz na prawdziwe pytania o sprzedaż z jednego miesiąca.

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.

Często zadawane pytania

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.

Czy to naprawdę bezpłatne?

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.

Czy potrzebuję konta?

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