Databases store data in tables. SQL is the language you use to ask them questions.
1 Declarative
You describe WHAT you want, not how to fetch it. The database engine figures out the HOW.
2 Tables & rows
Data lives in tables, like spreadsheets. Each row is one record; each column is one field.
3 Born in the 1970s
SQL was created at IBM in 1974 and became the worldwide standard for databases.
4 Everywhere
Apps, banks, games and websites all query their data with SQL.
What is SQL?
Declarative1You describe WHAT you want, not how to fetch it. The database engine figures out the HOW. Tables & rows2Data lives in tables, like spreadsheets. Each row is one record; each column is one field. Born in the 1970s3SQL was created at IBM in 1974 and became the worldwide standard for databases. Everywhere4Apps, banks, games and websites all query their data with SQL. 4 building blocks make up What is SQL?
1974 SEQUEL at IBM
Chamberlin and Boyce design a query language for the System R research project.
1986 ANSI standard
SQL becomes an official standard, portable between vendors and platforms.
Today Still on top
MySQL, PostgreSQL, SQLite and SQL Server all speak this same 50-year-old language.
Press Run to send a query on its journey — then click any stage to see what happens inside.
Press play: the engine scans the students table row by row, keeps two columns, and fills the result grid.
SELECT name, score
FROM students;
students
| id | name | score | city |
|---|
| 1 | Ava | 92 | Oslo |
| 2 | Ben | 82 | Oslo |
| 3 | Chloe | 85 | Lima |
| 4 | Dev | 68 | Lima |
| 5 | Emma | 95 | Oslo |
| 6 | Finn | 88 | Paris |
| name | score |
|---|
| press play — rows will appear here |
Step 1/6FROM hands the engine the students table; the scan starts at the top.
Every app you use follows this path: you tap, the app sends SQL, the database sends rows back.
process decision input / output start / end Click a term, then click its description to lock the pair.
5 conceptsTap a card to expand ?SELECTdrops into place
?FROMdrops into place
?Semicolon ;drops into place
?Rowdrops into place
?Columndrops into place
01SQL is declarative: you describe the result, the engine finds the way.
02A query reads a table (FROM) and picks columns (SELECT).
03The planner decides how to execute; the storage engine reads the rows.
04Statements end with a semicolon, and results come back as a grid.