WeCodeAcademy

What is SQL?

SQL (Structured Query Language) is how you ask questions of a database. Data lives in tables, which are grids of rows (records) and columns (fields).

Every example on this site runs on a small practice database built into your browser. It has three tables: customers, products and orders. Nothing is sent anywhere, and the database is rebuilt on every Run, so you cannot break it. Press Run:

Examplesql
Open in editor »

SELECT * means "give me every column", and FROM customers says which table. The semicolon ends the statement.

Quick check

What does a row in a table represent?

Your turn: write the code

Select just the name column from the products table.

Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.

Tip: use the left and right arrow keys to move between lessons.