Skip to main content

Analyzing Product Demand in SQL

Find out how to unlock a new dimension of your analytical power by bringing simple linear regression into SQL!
Apr 2, 2025
Code along with us onCode Along

Data skills are the cornerstone of the 21st-century workforce, and SQL is foundational for any role that involves data. Understanding and effectively using SQL can open doors to greater productivity, better decision-making capabilities, and more career opportunities in this era of digital transformation.

You might know SQL as a querying tool, but in this live training, you will see how SQL can help with predictive modeling. In this live training, we will teach you how to unlock a new dimension of your analytical power by bringing simple linear regression into SQL! Specifically, we will use a sales dataset and learn how to create a regression to find the quantity sold as a function of price. Furthermore, we will do a more sophisticated pricing anlaysis by finding the theoretical price that maximizes revenue —all within SQL.

Key Takeaways:

  • Learn how to find the coefficients for a simple linear regression in SQL
  • Discover how to use SQL to analyze pricing data and find the answer to an interesting optimization problem, which is finding the price that maximizes revenue
  • Become good at SQL aggregate functions and common table expressions (CTEs)

Session Resources

Topics
Related

Tutorial

SQL: Reporting and Analysis

Master SQL for Data Reporting & daily data analysis by learning how to select, filter & sort data, customize output, & how you can report aggregated data from a database!
Hafsa Jabeen's photo

Hafsa Jabeen

15 min

code-along

Free Trial Performance Analysis in SQL

Learn how to use SQL to analyze marketing data for a free trial of a product
John Brazier-Beckett's photo

John Brazier-Beckett

code-along

Exploratory Data Analysis in SQL for Absolute Beginners

Learn the basics of exploring new datasets using SQL.
Jasmin Ludolf's photo

Jasmin Ludolf

code-along

Using Joins to Analyze Book Sales in SQL

Learn how to join data together to get it into a state for analysis.
Tim Sangster's photo

Tim Sangster

code-along

Getting Started in SQL

Learn how to write basic queries in SQL and find answers to business questions.
Kelsey McNeillie's photo

Kelsey McNeillie

code-along

Analyzing Streaming Service Content in SQL

Learn to join data from multiple sources, and create no-code visualizations.
Justin Saddlemyer's photo

Justin Saddlemyer

See MoreSee More