
Dan Patiño
AI Strategy & Innovation at Coderhouse
Data
SQL Portfolio Projects for Aspiring Data Analysts: What to Build and How to Present It
A SQL portfolio project is a small, public piece of analysis that shows a hiring manager you can take a real business question, query messy data to answer it, and explain what someone should do next. For aspiring data analysts and career switchers, two or three solid SQL projects often say more than a certificate alone, because they prove the skill employers actually test in interviews: turning data into a decision.
Why it matters: SQL shows up in almost every entry-level analyst job description, and recruiters reviewing career changers want evidence beyond course badges. A good project gives them that evidence in five minutes—and gives you a story to tell in every interview.
What makes a SQL project “hireable”
Most portfolio projects fail not because the SQL is wrong but because nobody can tell why it matters. Strong projects share four traits:
A business question first: “Which customer segments churn fastest after their first order?” beats “Exploring an e-commerce dataset.”
Realistic data: multiple related tables, missing values, duplicates, and dates in awkward formats—like real company data.
Intermediate SQL used for a reason: joins, aggregations, CTEs, and window functions applied where they answer the question, not to show off.
A recommendation: a short written conclusion with the numbers that support it and the limits of the analysis.
Where to find good public datasets
Google BigQuery public datasets: large, multi-table data you can query directly in the browser; the first terabyte of queries each month is free (BigQuery public datasets).
NYC Taxi & Limousine Commission trip records: millions of real trips with timestamps, zones, fares, and tips (NYC TLC trip record data).
Data.gov: U.S. government open data on everything from transportation to health (Data.gov).
Kaggle datasets: convenient, but check that the data is realistic and not already analyzed in thousands of identical notebooks (Kaggle datasets).
Six SQL portfolio project ideas
1. E-commerce cohort retention
Group customers by first-purchase month and measure how many return in later months. Shows date functions, CTEs, and self-joins or window functions. End with which acquisition month or channel retains best.
2. Taxi demand and pricing patterns
Using trip records, find peak hours by zone, average fare per mile, and how tipping changes by payment type or time of day. Shows aggregation at scale and careful filtering of outliers.
3. Sales funnel drop-off
Model a funnel (visit, sign-up, first purchase) and calculate conversion between steps by segment. Shows conditional aggregation and the ability to define metrics clearly.
4. Product performance ranking
Rank products within each category by revenue and growth, then flag items that dropped out of the top ten. A natural use of RANK() and LAG(); the PostgreSQL window functions tutorial is a solid reference.
5. Public service response times
With a city 311 or service-request dataset, compare resolution times by neighborhood and request type. Shows data cleaning, time differences, and fairness-minded interpretation.
6. Data quality audit
Take a messy dataset and write queries that detect duplicates, impossible values, and broken keys, then document fixes. Underrated, and very close to what junior analysts do in their first months.
Project | SQL skills shown | Business skill shown |
|---|---|---|
Cohort retention | CTEs, date functions, window functions | Customer lifecycle thinking |
Taxi demand | Aggregation, filtering, large tables | Operations and pricing insight |
Funnel drop-off | Conditional aggregation, joins | Metric definition |
Product ranking | RANK, LAG, partitions | Prioritization |
Response times | Cleaning, time math, grouping | Public-sector reasoning |
Data quality audit | Constraints, anti-joins, validation | Trust in data |
How to build and present one, step by step
Write the question and the decision it supports in one or two sentences before touching the data.
Explore the schema: list tables, keys, row counts, and obvious data problems.
Clean and document: note every filter or fix and why you made it.
Build queries in layers with readable CTEs and comments, so a reviewer can follow the logic.
Sanity-check results: compare totals against the raw data and look for numbers that seem too good.
Visualize two or three key findings in a simple chart or dashboard.
Write a one-page summary: question, approach, findings, recommendation, limitations.
Publish it on GitHub with a clear README, and link it from your resume and LinkedIn.
Mistakes that weaken a SQL portfolio
Using only a single clean table, which hides whether you can join and model data.
Pasting hundreds of lines of SQL with no explanation of what each block answers.
Reporting numbers without a “so what” for the business.
Copying a popular tutorial project almost line for line.
Ignoring performance on large tables, such as selecting every column when you need three.
If you are still building fundamentals, review the common mistakes analysts make when learning SQL and the broader data analyst skills employers look for.
Choosing a course that ends with a real SQL project
Self-study can get you far, but feedback is what turns a practice project into a portfolio piece. When comparing data analyst certificates and courses, check whether:
SQL is taught on realistic, multi-table data rather than toy examples.
An instructor reviews your queries and your written conclusions, not just whether the code runs.
The program ends with a capstone you can publish and explain in interviews.
The schedule is realistic alongside a full-time job.
Coderhouse’s Data Analytics course runs for eleven weeks with one live class per week and roughly 6–8 hours of total work weekly. Two weeks focus on SQL—foundations and SQL for real analysis—alongside Python, visualization, statistics, experimentation, and AI-assisted analytics, and the course closes with a capstone and career-readiness week. It lists a $595 launch price, and you can try two classes free first.
FAQ
How many SQL projects do I need in my portfolio?
Two or three well-documented projects are usually enough. Depth and clarity matter more than volume.
Should I use SQLite, PostgreSQL, or BigQuery?
Any is fine. PostgreSQL is a common choice for local work, and BigQuery is handy for large public datasets. Mention the dialect in your README.
Can I include projects from a course?
Yes, especially if you extend them with your own question or dataset and explain your choices.
Do I need Python too?
Not for every project, but many analyst roles expect basic Python for cleaning and analysis. Combining SQL with a small Python or visualization step makes a project stronger.
Ready to build SQL projects that show employers how you think? Explore these Coderhouse courses:
Data Analytics Course — practice SQL, Python, and visualization on real problems and finish with a capstone.
AI Engineering Course — for developers ready to build LLM applications on top of their data skills.
I'm Dan Patiño, head of AI Strategy & Innovation at Coderhouse. My day-to-day work involves merging the tactical management of e-commerce (CRO, Email Marketing and SEO) with the development of disruptive solutions. I specialize in building internal AI-powered apps to automate tasks and boost innovation within the team. I firmly believe that technology is strategy's best ally. To dive deeper into my professional journey, I'll be waiting for you on my LinkedIn profile.