MicrolearnENPTES

Joining several tables

Lesson 15 of 24 · SQL.Micro

Questions often cross three or four tables. Chain one JOIN per table, each with its own ON condition.

orders → order_items → products: follow the keys like a path.

Compute inside the aggregate: SUM(i.quantity * i.unit_price).

Filter early with WHERE to keep only what matters.

Revenue per category from delivered orders only: category and the sum of quantity * unit_price.

Do it in the browser: a real SQL tool, a short mission and instant feedback. No install.

Start this lesson — free
← LEFT JOINA table joined to itself →

All lessons · SQL.Micro