Pattern 10· SQL & Querying

Windows I — ranking & offsets

ROW_NUMBER/RANK/DENSE_RANK on ties, PARTITION vs GROUP, top-N per group, LAG/LEAD.

The traps in this pattern

Ready to practise?

Run graded Windows I — ranking & offsets problems in your browser — 6 traps covered here.

Practise these problems →