db.l3.ai

Play

lessons

what-changed-in-19

editor

engine: not started

results

Run a query to see rows here.

check

Boss: dearest per category

For each category, get the single most expensive product (ties: lowest id) with a LATERAL subquery that sorts and takes one row.

task

Name of the most expensive product per category, ties by lowest id, with LATERAL.

hints