SQL for data analysis in 30 days
by Sopanly Team
30 days · Free preview: Day 1, 2, 8 · No ratings yet
Scan with your Android phone to get it in the Sopanly app.
Or continue on the webGo from your first SELECT to answering real business questions with joins, window functions and clean reports.
About this roadmap
A practical SQL roadmap for people who want to analyse data, not administer databases. You work with one realistic dataset of an online store (customers, orders, products) the whole month, so each new idea builds on the last. Weeks 1 and 2 cover filtering, sorting, aggregation and joins. Week 3 moves to subqueries, CTEs, CASE logic and dates. Week 4 adds window functions and ends with a small analysis project you can show: a written report answering five questions a manager might ask. Each day is about 45 minutes: a short concept, queries to type yourself, and one question to answer from the data. Uses free tools (SQLite or PostgreSQL).
What you'll achieve
Write SQL queries that answer everyday analysis questions: totals, trends, top items, customer behaviour and month-on-month changes.
Who it's for
Students, analysts who live in spreadsheets, product and marketing people, and anyone starting a data career.
Prerequisites
Comfort with a computer and basic spreadsheet ideas (rows, columns, sums). No programming needed.
What you'll learn
SELECT, WHERE, ORDER BY, GROUP BY, HAVING, all kinds of JOIN, subqueries, CTEs, CASE, date functions, window functions (ROW_NUMBER, RANK, LAG, running totals) and how to check your results.
How it works
One dataset all month. Each day: learn one idea, type the example queries yourself, then answer a question in your own words.
What you'll need
A laptop, the free DB Browser for SQLite or PostgreSQL, and a notebook or document to keep your queries in.
Expected outcomes
A folder of about 100 queries you wrote yourself and a short analysis report built from them.
After you finish
You can open an unfamiliar table, explore it, join it with others and explain what the numbers say, and you'll know what to learn next (indexing, BI tools or Python).
Questions and answers
Which database should I use?
SQLite is the easiest start (one file, nothing to configure). Everything in the roadmap also works in PostgreSQL; day 1 shows both.
Is this enough for a data analyst role?
It covers the SQL most analyst work uses. Roles also look for spreadsheets, a BI tool and communication; the last week's report is a good start for a portfolio.
Where does the practice data come from?
Day 1 shows how to build a small online-store dataset with a few CREATE TABLE and INSERT statements, so you know exactly what's in it. You can also use any public sample database.
What if I fall behind?
Days build on each other, so continue from where you stopped rather than skipping ahead. Review days are a good place to catch up.
Sample days
Install a SQL tool and run SELECT on a table you created.
- What a database and a table are
- Install DB Browser for SQLite and create the store tables
- Run SELECT * and SELECT with chosen columns
Return only the rows that match a condition.
- WHERE with =, <>, <, >, BETWEEN, IN and LIKE
- Write 8 filters on the orders table
- Answer: how many orders were placed by one city?
Combine two tables on a shared key.
- Primary keys, foreign keys and INNER JOIN
- List each order with the customer's name and city
- Revenue per customer name
Everything in it
82 tasks over 30 days. Locked days open after you get it.
- Day 1: Set up and your first query
- Day 2: Filtering with WHERE
- Day 3: Sorting and limiting 🔒
- Day 4: Handling missing values 🔒
- Day 5: Counting and summing 🔒
- Day 6: GROUP BY and HAVING 🔒
- Day 7: Review: week 1 🔒
- Day 8: INNER JOIN
- Day 9: LEFT JOIN and finding what's missing 🔒
- Day 10: Joining several tables 🔒
- Day 11: Join traps 🔒
- Day 12: Self joins and UNION 🔒
- Day 13: Grouping across joins 🔒
- Day 14: Review: week 2 🔒
- Day 15: Subqueries 🔒
- Day 16: Common table expressions (WITH) 🔒
- Day 17: CASE expressions 🔒
- Day 18: Working with dates 🔒
- Day 19: Text functions and cleaning 🔒
- Day 20: Creating views 🔒
- Day 21: Review: week 3 🔒
- Day 22: Window functions: ROW_NUMBER and RANK 🔒
- Day 23: Running totals and moving averages 🔒
- Day 24: LAG and LEAD 🔒
- Day 25: Cohorts and retention, simply 🔒
- Day 26: Checking your results 🔒
- Day 27: Project: choose five questions 🔒
- Day 28: Project: write the queries 🔒
- Day 29: Project: write the report 🔒
- Day 30: Wrap up and what's next 🔒
Reviews
No ratings yet · 0 ratings
Good to know
Includes future updates: when the creator publishes a new version, your roadmap gets it for free.
Ask for a refund within 7 days of buying if you've completed 3 days or fewer. If it's refunded, the roadmap is removed from your account.
Results depend on your effort; no roadmap can guarantee a job, income or exam result. Report this roadmap