Skip to main content

Learn SQL

Ask questions of a database and get answers back.

SQL is the language for asking questions of a database. You use it to create tables, insert rows and select the records you need — often across several tables at once.

The editor runs a real SQLite database in your browser, so you can create a table and query it without installing a database server. Each Run starts from a fresh database.

SQL comes up in data and backend interviews. It is also one of the few languages where a useful result comes after a single line.

Start here

First program: Create a two-column table, insert three rows, then select the rows sorted by one column.

There are no SQL lessons yet. The editor runs in your browser and needs no account.

Practice

Practice problemsRead a problem, write an answer and run it against the samples.

The practice problems are programming questions, not SQL. Practise SQL in the editor above, and read the SQL guides below.

Read more

Want the full programme with mentorship and placement? See the plans