Skip to main content
HomeSQLAnalyzing Business Data in SQL

Analyzing Business Data in SQL

4.7+
11 reviews
Intermediate

Learn to write SQL queries to calculate key metrics that businesses use to measure performance.

Start Course for Free
4 Hours15 Videos46 Exercises
30,349 LearnersTrophyStatement of Accomplishment

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.

Loved by learners at thousands of companies


Course Description

Businesses track data on everything, from operations to marketing to HR. Leveraging this data enables businesses to better understand themselves and their customers, leading to higher profits and better performance. In this course, you’ll learn about the key metrics that businesses use to measure performance. You'll write SQL queries to calculate these metrics and produce report-ready results. Throughout the course, you'll study data from a fictional food delivery startup, modeled on data from real companies.
  1. 1

    Revenue, Cost, and Profit

    Free

    Profit is one of the first things people use to assess a company's success. In this chapter, you'll learn how to calculate revenue and cost, and then combine the two calculations using Common Table Expressions to calculate profit.

    Play Chapter Now
    Revenue
    50 xp
    Revenue per customer
    100 xp
    Revenue per week
    100 xp
    Cost and Common Table Expressions (CTEs)
    50 xp
    Total cost
    50 xp
    Top meals by cost
    100 xp
    Using CTEs
    100 xp
    Profit
    50 xp
    Profit per eatery
    100 xp
    Profit per month
    100 xp
  2. 2

    User-Centric KPIs

    Financial KPIs like profit are important, but they don't speak to user activity and engagement. In this chapter, you'll learn how to calculate the registrations and active users KPIs, and use window functions to calculate the user growth and retention rates.

    Play Chapter Now
  3. 3

    ARPU, Histograms, and Percentiles

    Since a KPI is a single number, it can't describe how data is distributed. In this chapter, you'll learn about unit economics, histograms, bucketing, and percentiles, which you can use to spot the variance in user behaviors.

    Play Chapter Now
  4. 4

    Generating an Executive Report

    Executives often use the KPIs you've calculated in the three previous chapters to guide business decisions. In this chapter, you'll package the KPIs you've created into a readable report you can present to managers and executives.

    Play Chapter Now

In the following tracks

SQL for Business Analysts

Collaborators

Collaborator's avatar
Mona Khalil
Collaborator's avatar
Sara Billen
Michel Semaan HeadshotMichel Semaan

Data Scientist

Michel is a data scientist who's worked at leading Middle-Eastern startups like Bookwitty (e-commerce) and Anghami (music streaming). He loves using open-source technologies like Python, R, and SQL to analyze data, optimize KPIs, and solve problems.
See More

Don’t just take our word for it

*4.7
from 11 reviews
73%
27%
0%
0%
0%
Sort by
  • Izabela S.
    8 months

    I liked the practical examples

  • Anand S.
    11 months

    Great

  • Eric F.
    about 1 year

    Huge experience!

  • Hugo P.
    about 1 year

    Very good

  • Vasyl L.
    over 1 year

    thank datacamp team for your work

"I liked the practical examples"

Izabela S.

"Great"

Anand S.

"Huge experience!"

Eric F.

Join over 13 million learners and start Analyzing Business Data in SQL today!

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.