Courses · Video course with Excel

SQL for Finance: Querying Ledgers, Sales and Loan Data

How a finance analyst gets answers straight from the data: read a relational schema, join ledgers to accounts and cost centers, aggregate a trial balance, write subqueries and CTEs, use window functions for running totals and ranks, handle dates and period cutoff, run reconciliation controls, and produce the monthly P&L, the receivables aging and the loan book report.

$149, or included in All Access

8 modules and 48 video lessons with English subtitles, a written lesson and an Excel build per module, the Course Book (38 pages), an Exercise Workbook that checks your 45 answers, an 80-question quiz app, and the certificate exam online. The files download right after payment; the videos play in your learner account.

Get the course, $149 →

Secure checkout by Stripe. 14-day money-back guarantee. Not sure yet? Watch two lessons, read module 1 and try ten questions below.

Alderton Industrial Supply is a fictional distributor whose books live in a relational database: a general ledger, invoices, customers, cost centers and a loan portfolio. This course starts with SELECT and WHERE and ends with the reports a controller and a credit team need every month: a P&L reconciled to the trial balance, an aging of receivables with expected credit losses, and a loan book report. Every query is run on the database each time the course is built, so every figure in the Course Book matches what you will see on your screen.

What you will be able to do

The program

8 modules. For each: watch six short video lessons, read the module, build it in the Exercise Workbook, then check yourself with the quiz.

Try it free

Two video lessons. Lesson 1.5 opens the running case and its database; lesson 1.6 builds the first averages and a cutoff check in the workbook. In the course, each module has six short video lessons like these, then the module to read in the Course Book and its exercise to build.

Lesson 1.5, Build it: the running case: free.
Lesson 1.6, Build it: averages and cutoff check: free.

Module 1 in full. Download module 1 of the Course Book (PDF): relational data, SELECT, filtering and sorting, NULL logic and the running case.

Ten quiz questions. Click an answer: it turns green or red and the explanation appears. The questions use the running case:

Alderton Industrial Supply Corp. (fictional): a distributor based in Columbus, Ohio, with its general ledger, invoices, customers, cost centers and loan portfolio in one SQLite database, closing its fiscal year on 31 December 2025.

Module 1

1. How many customer invoices were issued in FY2025 (2025-01-01 to 2025-12-31)?

Answer: 48. Filtering invoice_date BETWEEN '2025-01-01' AND '2025-12-31' returns 48 invoices, excluding FY2024 and the single 2026-01-02 invoice.

Module 1

2. How do you correctly filter rows where cost_center_id is missing (NULL)?

Answer: WHERE cost_center_id IS NULL. In SQL three-valued logic, any equality test against NULL yields UNKNOWN; always use IS NULL or IS NOT NULL.

Module 2

3. How much FY2025 G&A expense is silently lost if an analyst uses INNER JOIN cost_centers instead of LEFT JOIN?

Answer: $18,500.00. JE-2025-1155 ($18,500.00) carries cost_center_id = 'CC-999', which has no match in cost_centers.

Module 3

4. How many regions pass the filter HAVING SUM(amount) > 850000 in FY2025?

Answer: 2. Only Midwest ($1,042,000.00) and Northeast ($914,000.00) exceed $850,000.

Module 4

5. Why is NOT EXISTS safer than NOT IN when checking for missing records?

Answer: NOT IN returns zero rows if the subquery contains even a single NULL value. Because x <> NULL evaluates to UNKNOWN, NOT IN fails silently whenever NULLs appear in the subquery column.

Module 5

6. How do ROW_NUMBER(), RANK() and DENSE_RANK() differ when two customers tie for 1st place?

Answer: ROW_NUMBER gives 1,2,3; RANK gives 1,1,3; DENSE_RANK gives 1,1,2. RANK leaves gaps after ties; DENSE_RANK has no gaps; ROW_NUMBER forces unique sequential integers.

Module 6

7. Using julianday('2025-12-31') - julianday('2025-09-09'), how many days past due is an August 10 invoice due September 9, 2025?

Answer: 113 days. Sep (21 days left) + Oct (31) + Nov (30) + Dec (31) = 113 days past due, placing it in the 90+ DPD bucket.

Module 7

8. What is the exact variance between GL Account 1200 and the open AR sub-ledger as of 2025-12-31?

Answer: $12,400.00. GL Account 1200 ($789,700.00) minus AR sub-ledger ($777,300.00) = $12,400.00, caused by manual top-side journal JE-2025-1290.

Module 8

9. What is the balance-weighted average coupon (WAC) of Alderton's equipment loan book?

Answer: 8.14%. SUM(outstanding * rate) / SUM(outstanding) = 8.14%, lower than the unweighted simple average (8.34%) because larger loans carry lower rates.

Module 8

10. Under IASB IFRS 9, what is the rebuttable presumption threshold for migrating a loan from Stage 1 to Stage 2?

Answer: More than 30 days past due (DPD > 30). 30 DPD is the Stage 2 (Significant Increase in Credit Risk) backstop, shifting provisioning from 12-month ECL to lifetime ECL.

Try the module 1 exercises

The 5 results that close module 1, from the data of the case. Type your answers, then check them in one click. No sign-up.

Inside the course

Exercise Workbook: the M8 Reporting tab with given data, answers and automatic checks
The Exercise Workbook: one tab per module, given data in blue, your answers in yellow and a check that turns green or red. Hidden solution tabs hold live formulas.
Course Book: a page of module 4, Subqueries and Common Table Expressions (CTEs)
The Course Book: each module has objectives, the lesson, a worked example on the case, pitfalls, a summary and practice questions.
Quiz App: a question with the explanation after the answer
The Quiz App: 80 questions with explanations, practice by module. It runs offline, and the same quizzes are in your learner account.

Your certificate

Pass the online exam (40 questions, 60 minutes, 80%) and you receive a certificate of completion with a public verification page, to add to your profile or your CV.

Preview of the certificate of completion of the SQL for Finance course
Preview of the certificate (sample name).

How you learn

Online course playerWatch the video lessons in the browser, at up to 2x speed, then read each module of the Course Book with its Excel file one click away; your progress follows you from one device to the next.
45 graded exercisesEach module ends with the numbers of the case to compute yourself: type your results and check them in one click, with a hint for each and the solutions on request.
8 module quizzes and flashcardsReview the key ideas with flashcards, then take the quiz: questions drawn at random, the explanation after each answer, your best score kept.
Final exam and certificate40 questions from a private bank, 60 minutes, 80% to pass. The certificate has a public verification page and an Add to LinkedIn button.

What you receive

FileWhat it is
Online course player48 video lessons, six per module, with English subtitles, to watch in the browser at up to 2x speed.
Course_Book.pdf8 modules, 38 pages: objectives, lessons, worked examples, pitfalls, summaries and practice questions; glossary, answers and dated sources.
Exercise_Workbook.xlsx8 exercise tabs, 45 answers checked automatically, hidden solution tabs built with live formulas.
Quiz_App.html80 questions with explanations.
alderton_finance.dbThe SQLite database of the running case: chart of accounts, journal entries, invoices, customers, loans and more, ready for every query of the course.
Start_Here.pdfHow to work through the course, on one page.
Certificate examOnline from your order page or your account: 40 questions from a private bank, 60 minutes, 80% to pass, verifiable certificate.

The running case

One fictional company, one database, eight modules. Each module adds a family of queries on the same tables, and the exercise tab of the workbook asks you to report what your queries return. The last module brings the queries together into the three monthly reports.

Part of the finance data track

This course pairs with Power BI for Finance, which turns the same kind of data into dashboards, and with Python for Finance. See certifications.

Not ready yet?

Join the reader list: one short email when a new course, case or correction goes up. No spam, unsubscribe in one click.

Join the reader list Run by MailerLite. How your address is used.

Questions people ask

Who is the course for?

Analysts in FP&A, accounting, controlling, treasury and credit who still rebuild reports by hand in spreadsheets, and finance students who want SQL on their CV. You need working Excel and to know what a general ledger and a trial balance are. No prior SQL is assumed.

Is there video?

Yes. In the online course player, each module opens with six short video lessons with English subtitles (two are free on this page), then the module of the Course Book to read and its exercise to build in Excel, an exercise tab and a quiz. The videos play in your learner account; the download pack holds the written course, the workbooks and the quiz app.

How long is it?

8 modules and 48 video lessons, about 135 minutes of video in total. Each module also has a written lesson and an Excel build. Most learners need six to eight hours in all, videos included, plus the 45 exercises and the quizzes.

What do I get exactly?

Right after payment, one zip: the Course Book (PDF, 38 pages), the Exercise Workbook (8 tabs, 45 answers checked automatically, hidden solution tabs with live formulas), the Quiz App (80 questions), the SQLite database of the case and a one-page start guide. The certificate exam opens from your order page or your learner account. The 48 video lessons play there too, in the online course player.

Does it work outside Excel?

Yes. The queries run on the SQLite database included in the pack, with any free SQLite tool or with Python's sqlite3 module. The workbook uses standard functions that Excel, LibreOffice and Google Sheets provide. There are no macros and no circular references.

How does the certificate exam work?

40 questions drawn at random from a private bank, 60 minutes, graded on the server, 80% to pass, retake as often as you need. You receive a certificate of completion with a public verification page. How certificates work.

Are the companies real?

No. Alderton Industrial Supply Corp., its customers, its loans and every figure in the database and the case are fictional.

Can I get a refund?

Yes. Every course has a 14-day money-back guarantee: write to [email protected] within 14 days of your purchase and you get a full refund, no reason needed. Details in the terms of sale.

Is it professional advice?

No. It is educational material, prepared with AI assistance; the video lessons use AI-generated narration. Every figure is computed by the same code as the workbook and checked by script.

SQL for Finance: $149

48 video lessons, the Course Book, the Exercise Workbook, the quiz app and the certificate exam. The files download right after payment; the videos play in your learner account. 14-day money-back guarantee.

Get the course, $149 →

Want every course? All Access opens all of them, with their certificate exams.

Related