SQL for Data Analysis: Answer Business Questions with PostgreSQL
$39
Lifetime access · Secure payment by Stripe
A free account is required before payment. Refund within 14 days as long as no paid lesson has been opened.
Description
Answer ten business questions about an online shop with SQL queries using joins, aggregates, CTEs and window functions on a database you load yourself. The course has 9 modules, 27 reading lessons, 9 narrated videos with English captions, 9 quizzes and a 54-question practice exam. Use the same database throughout the course. Tidewell Supply is a fictional online shop selling kitchen, office, outdoor and travel goods. Its seven tables contain about 2,450 orders and 694 customer rows, with NULLs, duplicates and inconsistent casing. Start by listing rows, then answer the owner's ten questions in one reviewed script. For analysts, career changers and students who work with spreadsheets and want to query a relational database. No programming or SQL experience is required.
Curriculum
Lessons marked "open access" work without an account.
What you'll learn
- Start PostgreSQL 17 in Docker, load the Tidewell Supply database and list the five most expensive active products with SELECT, ORDER BY and LIMIT.
- Write filters that return exactly the orders placed in November 2025 with a discount code, and explain why each row matched.
- Normalize the 17 spellings of country and the 13 spellings of order status into clean values with LOWER, TRIM, CASE and COALESCE.
- Produce an order count and a revenue total per normalized status, filtering groups with HAVING.
- Join orders, items, products and customers to rank countries by revenue, and expose a row-multiplying join before it inflates a total.
- Build a monthly revenue series for 2025 with date_trunc and generate_series, including months with no sales.
- Rewrite a nested query as a chain of named CTEs and remove duplicate customers with DISTINCT ON.
- Return the top three products per category and a month-over-month revenue change with window functions.
- Deliver one script that answers the owner's ten questions, with a reconciliation check that proves the totals agree.
Skills you'll gain
Content type
Your instructor
Written and recorded by the OmniLearn instructor team. Every lab was run on the versions listed in the course before the lesson was published.
Before you buy
Can I look before paying?
Yes. Lessons marked as free in the syllabus open without a purchase. The others stay locked until payment.
How long does access last?
No time limit. You pay once; there is no subscription and no renewal.
Can I get a refund?
Yes, on request at info@omnilearn.org within 14 days, as long as no paid lesson has been opened. After that we refund if the course does not match its description or a technical fault stops you from following it.
What do I get at the end?
An OmniLearn certificate with a code anyone can check online. It shows you finished the lessons and quizzes. It is not a Microsoft, Google or other vendor certification, and it does not replace any official exam.
Who takes the payment?
Stripe. You type your card number on Stripe's page; it never goes through OmniLearn.