Practical uses
- Query operational and analytical data
- Design reliable application storage
- Build reports and business dashboards
- Transform data in warehouses and pipelines
The standard language for querying and changing data in relational databases.
SQL (Structured Query Language) is how you read and change data in relational databases such as PostgreSQL, MySQL and SQLite. Almost every application stores its data this way, so SQL is useful whichever other language you work in.
The easiest way to start is SQLite: a complete SQL database stored in a single file, with no server to set up. It comes with Python and most operating systems. You do not need this to follow the lessons: the examples run in your browser.
# SQLite comes with Python. Or download the CLI:
# https://www.sqlite.org/download.html (sqlite-tools zip)
# Then open a database (creates the file if missing):
sqlite3 mydata.db
# Or install PostgreSQL for the full experience:
winget install PostgreSQL.PostgreSQLLearn the basics first, then pick up these tools when a project needs them.