SQL Projects for Beginners

Get hands-on experience with real-world data cleaning and analysis.

Overview

Congratulations on completing all Level 1 SQL concepts! You're now ready to take the next step in your SQL journey by building your first projects. Building projects is a crucial part of your learning journey for several reasons:

  • They provide hands-on experience with real-world data scenarios
  • They serve as excellent portfolio pieces to showcase your SQL skills
  • They help reinforce and cement the concepts you've learned
  • They build your confidence in working with databases

We are going to start with instructions on setting up your SQL environment for your first project. Then we'll walk you through 3 project ideas that you can choose from.

Setting up for your first SQL project

1. Install PostgreSQL

PostgreSQL is a free, open-source SQL database that's widely used in the industry.

Download it from: https://www.postgresql.org/download/

During installation, make note of:

  • Your username (default is usually postgres)
  • Your password
  • The port number (default is 5432)

Windows: Run the installer and follow the setup wizard. Make sure to add PostgreSQL to your system PATH during installation.


Mac: Download the installer from the PostgreSQL website and follow the setup wizard.

2. Install a SQL Client

You'll need a tool to interact with your PostgreSQL database. Two good, free options:

pgAdmin

Comes with the PostgreSQL installer on Windows. For Mac, download it from the pgAdmin website.

DBeaver

Download from: https://dbeaver.io/
Works with PostgreSQL and many other databases. Offers a clean interface for writing and running SQL.

3. Create a New Database

After launching your client and connecting to the server:

Create a new database to hold your project data. Example:

CREATE DATABASE sql_project;

4. Import Your Dataset

If your data is in a CSV file, you'll need to:

Create a table with the right column types:

CREATE TABLE my_table (
    column1 TEXT,
    column2 INT,
    column3 DATE
);

Import the data:

  • In pgAdmin: Right-click the table → Import/Export → Choose your CSV file
  • In DBeaver: Right-click the table → Import Data → Follow the wizard

5. Verify Your Data

Run a quick check to make sure the data loaded correctly:

SELECT * FROM my_table LIMIT 10;

6. Organize Your Project Files

Create a folder for your project that includes:

  • The raw data file (CSV)
  • A .sql file with your setup and queries
  • A README or notes file describing your process

7. Ready for Analysis

With your data loaded and environment set up, you're ready to begin exploring, cleaning, and analyzing the data. The next section will walk you through choosing a project idea and breaking it down step by step.

Project 1: Analyze Amazon Sales Data

Project Overview

In this project, you'll analyze real-world e-commerce sales data to uncover basic trends and performance metrics. You'll practice foundational SQL skills to summarize and clean the dataset.

Learning Objectives

  • Practice writing basic SQL queries using SELECT, FROM, and WHERE
  • Learn how to clean and filter data using logical operators and keywords
  • Aggregate and summarize data using common SQL functions
  • Gain confidence exploring real-world datasets with simple analysis

Practice Questions

Here are some beginner-friendly questions to get you started:

  • How many total rows (sales records) are in the dataset?
  • What is the total revenue generated across all sales?
  • Which product category had the highest total quantity sold?
  • What is the average sales amount per transaction?
  • How many unique SKUs were sold?
  • What are the top 5 most sold SKUs based on quantity?
  • Which month had the highest total sales revenue?
  • How many sales were B2B transactions vs non-B2B?
  • Which fulfilment method was used most frequently?
  • How many sales were made for each product size?

Ready to get started?

Simply download the dataset AmazonSaleReport.csv below and upload it to your PostgreSQL database.

Download Dataset from Kaggle

Project 2: Analyze Customer Support Ticket Data

Project Overview

This project focuses on exploring customer support ticket data to understand common issues and how they are handled. You'll work with real-world support data to surface patterns and trends that inform customer service operations.

Learning Objectives

  • Write SQL queries to explore customer service-related datasets
  • Clean and standardize text-based fields
  • Aggregate data to find trends in issue types, resolution times, and volumes
  • Practice filtering and summarizing operational data

Practice Questions

Here are some beginner-friendly questions to get you started:

  • How many support tickets are in the dataset?
  • What are the most common issue types reported?
  • How many tickets were submitted through each support channel?
  • What is the average resolution time across all tickets?
  • How many tickets were resolved on the same day they were submitted?
  • How many tickets were submitted each month?
  • What is the total number of unresolved tickets?
  • How many tickets were submitted each month?

Ready to get started?

Simply download the dataset below and upload it to your PostgreSQL database.

Download Dataset from Kaggle

Project 3: Analyze Marketing Campaign Performance

Project Overview

In this project, you'll analyze marketing campaign performance data to uncover trends and insights. You'll work with real-world marketing data to evaluate campaign effectiveness and audience engagement.

Learning Objectives

  • Write SQL queries to explore marketing campaign datasets
  • Clean and standardize data fields
  • Aggregate data to find trends in campaign performance metrics
  • Practice filtering and summarizing marketing data

Practice Questions

Here are some beginner-friendly questions to get you started:

  • How many customer records are in the dataset?
  • How many customers accepted each of the five marketing campaigns?
  • What is the overall acceptance rate across all marketing campaigns?
  • How many customers belong to each education level?
  • What is the average income of customers who accepted the most recent campaign?
  • Which purchase channel had the highest number of purchases?
  • How many customers visited the website more than five times in the last month?
  • What is the average number of days since the last purchase across all customers?
  • How many customers made at least one purchase using a discount?

Ready to get started?

Simply download the dataset below and upload it to your PostgreSQL database.

Download Dataset from Kaggle

🎉 Congratulations on Completing Level 1 Projects!

You've made it through your first set of SQL projects! This is a significant milestone in your journey to becoming proficient with SQL. These projects have helped you:

  • Apply fundamental SQL concepts to real-world scenarios
  • Work with actual datasets from different business domains
  • Practice data cleaning and analysis techniques
  • Build confidence in your SQL abilities

What's Next?

In Level 2, you'll dive into table relationships and more complex data analysis. You'll learn:

  • Working with multiple related tables using different types of JOINs
  • Combining datasets using set operations
  • Self-joins for hierarchical data analysis
  • Cross joins for generating combinations

The next set of projects will challenge you to:

  • Work with multiple related tables simultaneously
  • Perform more sophisticated data analysis
  • Generate deeper business insights
  • Design your own analysis approach with greater autonomy
  • Handle real-world scenarios requiring table relationships

Remember: Every expert was once a beginner. The projects you've completed here have laid a strong foundation for your SQL journey ahead. Keep practicing, stay curious, and don't hesitate to revisit these fundamentals as you tackle more advanced challenges.