>_BeginnerCoder
Donate

Lesson 19 — Ranking with a subquery

Position rows

Count how many rows are larger to compute a rank without window functions.

Why it matters: leaderboards need ranks.

Task

Print each product with how many are pricier.

← Back
Next →

Enjoying this lesson? Share it 👇

Keep going with SQL Deep Dive

Ready for more? These paid resources pick up where this lesson leaves off.

Some links on this page are affiliate links: we may earn a commission at no extra cost to you. We only recommend tools we believe are genuinely useful.