SQL · Finance · Accounting Finance database online

Learn SQL with realistic finance data.

Build practical SQL skills with realistic finance and accounting data covering revenue, VAT, margins, payments and customer receivables.

18exercises with solutions
8relational tables
0completed locally
analyse_creances.sql finance.db
01SELECT c.nom_client, f.id_facture,
02f.montant_ttc - COALESCE(SUM(r.montant_regle), 0)
03AS reste_a_payer
04FROM clients c
05JOIN factures f ON c.id_client = f.id_client
06LEFT JOIN reglements r ON f.id_facture = r.id_facture;
Query executed 6.4 ms
clientfactureoutstanding balance
Nova TipF-10424 820 €
Orion RetailF-10482 450 €
01Write 02Run 03Analyze
SELECT & filtresSQL joins Financial aggregationsReading results
Why SQL Finance Trainer

From SQL syntax to business data analysis

A structured practice environment for learning SQL through realistic finance scenarios.

01
SQL

Scenario-based exercises

Practice with simplified sales, purchases, invoices, payments, products and supplier data.

02
OK

Automatic validation

Validate each result automatically and learn from clear feedback.

03
DB

Relational schema

Understand keys and relationships before writing reliable joins.

04
CSV

Exportable results

Export SQL results to CSV for further analysis.

05
18

Visible progress

Track completed exercises locally and progress from SELECT to advanced analysis.

06
KPI

Business context

Interpret VAT, margins, receivables and revenue beyond the raw query result.

Learning workflow

A structured approach from scenario to result.

Every exercise follows the same steps to build reliable SQL habits.

View the learning path
01

Read the scenario

Identify the finance objective and the relevant data.

02

Write the query

Choose the relevant tables, filters, joins and aggregations.

03

Run

Run the query directly against the SQLite database.

04

Analyze

Review the returned rows and check their consistency.

05

Compare

Validate the result and understand the solution.

Relational model in action

See how finance data connects

01 · Master dataclientsid_client · nom · pays
JOINid_client
02 · Sales cyclefacturesmontant_ht · tva · ttc
LEFT JOINid_facture
03 · Cash flowreglementsdate · montant_regle
Available finance scenarios

Practical calculations for SQL practice

Ready to practice?

Build practical SQL skills with finance-oriented data.

Start with a finance scenario, run your first query and validate the result.

Get started