Programming and data
Learn SQL: what to know and where to start
SQL is the standard language for asking questions of data stored in relational databases. Analysts, developers and data engineers use it, and it is one of the most requested data skills.
Outcomes
What you will be able to do with SQL
- Query a table with SELECT, WHERE and ORDER BY
- Group and summarise data
- Join several tables
- Use subqueries and CASE expressions
- Speed up a slow query
Learning path
How to learn SQL, in order
- Beginner
Query one table
Learn SELECT, WHERE, ORDER BY, GROUP BY and aggregate functions. You are ready when you can answer simple questions from a single table.
- Intermediate
Combine and shape data
Practise joins, subqueries, CASE expressions, dates and strings. You are ready when you can answer questions that need several tables and check the result is right.
- Advanced
Write advanced and efficient queries
Learn window functions, CTEs, indexes and reading query plans. You are ready when you can speed up a slow query and explain the change.
Self-check
Where should you start with SQL?
Answer honestly. Nothing is saved or sent.
Where to start
Courses to start learning SQL
One reviewed course for each level we cover, so you can begin where you are.
Google Data Analytics Professional Certificate
Complete beginners who want the most widely enrolled entry route into data analysis.
CEH Certification: Certified Ethical Hacking Course
Live CEH v13 exam preparation with 220+ hands-on exercises and an exam voucher.
IBM RAG and Agentic AI Professional Certificate
A 10-course IBM path through RAG, vector databases, multimodal apps and AI agents, ending in a capstone.
Roadmaps
Roadmaps that build SQL
Step-by-step routes where SQL is one of the skills you pick up.
Back-end developer
Builds the servers, databases and APIs behind an app. The route runs from free Python courses to a back-end certificate and DevOps.
How to become one →Business AnalyticsBusiness analyst
Gathers requirements and turns business questions into analysis. The route runs from free Excel to analytics basics, a live program and a graduate certificate.
How to become one →Business AnalyticsBusiness intelligence analyst
Builds data models and dashboards in Power BI or Tableau. The route runs from a free overview to analytics basics, a BI tool and a BI step-up.
How to become one →Learn
Guides on SQL
Plain-English guides from the Learn section.
Excel, SQL or Power BI: which analytics tool to learn first
Start with Excel, add SQL when your data outgrows a sheet, and learn Power BI when you need shared dashboards. How to choose by the job in front of you.
6 min read · Updated 5 Nov 2026How to learn data analysis from scratch
A beginner path for data analysis: spreadsheets first, then SQL, charts and one small project.
6 min read · Updated 2 Nov 2026Best-of lists
Ranked lists with SQL courses
Our category rankings that include a course teaching SQL.
Keep going
Where to go next
The first is the natural next step from this page. The rest follow what you have been reading.
Business analyst
Gathers requirements and turns business questions into analysis. The route runs from free Excel to analytics basics, a live program and a graduate certificate.
SkillAPIs
An API is a defined way for one piece of software to ask another for data or an action, usually over the web.
GuideExcel, SQL or Power BI: which analytics tool to learn first
Start with Excel, add SQL when your data outgrows a sheet, and learn Power BI when you need shared dashboards. How to choose by the job in front of you.
RoadmapBusiness intelligence analyst
Builds data models and dashboards in Power BI or Tableau. The route runs from a free overview to analytics basics, a BI tool and a BI step-up.
SkillBusiness strategy and domain knowledge
Business and domain knowledge is understanding how a company or industry makes money, who its customers are and what rules shape it.
GuideHow to learn data analysis from scratch
A beginner path for data analysis: spreadsheets first, then SQL, charts and one small project.
RoadmapData analyst
Turns raw data into answers with spreadsheets, SQL and dashboards. The route runs from a free first look to a core certificate and a BI tool.
SkillData analysis
Data analysis is cleaning, exploring and summarising data to answer a question.
GuideHow to start learning AI from scratch: a beginner order
Learn Python basics first, then machine learning, then generative AI. A beginner order for AI learning, with what to look for in a course at each step and when to move on.
FAQs
SQL: common questions
What is SQL?
SQL is the language used to create, fill and query tables in a relational database. The PostgreSQL tutorial introduces it in a chapter on the SQL language that covers creating tables, adding rows, querying, joins, aggregate functions, updates and deletions.
Do I need programming experience to learn SQL?
Not necessarily. The PostgreSQL tutorial says it assumes only some general knowledge about how to use computers and that no particular Unix or programming experience is required.
What do I learn after the basics?
The PostgreSQL tutorial's advanced section covers views, foreign keys, transactions and window functions. These match the intermediate and advanced stages of the learning path on this page.
Is SQL the same in every database?
Mostly, but not entirely. The PostgreSQL documentation notes that some of its language features are extensions to the standard, so check which database a course teaches.
Is one tutorial enough to learn SQL?
No. The PostgreSQL tutorial says it only gives an introduction and is in no way a complete tutorial on SQL. Practise on your own data after any course.