Learn SQL Lesson

Your First Query

SQL (Structured Query Language) is the standard language for working with data in databases. The most fundamental SQL statement is `SELECT`, which retrieves data from a table.

The simplest query looks like this:

SELECT * FROM table_name

The asterisk (`*`) means "all columns". This query returns every row and every column from the specified table.

Click "Load Data" below to create a sample employees table, then try running the query yourself!

Practice challenge

Select all rows and columns from the employees table.

Open interactive editor