db.l3.ai

Play

lessons

what-changed-in-19

editor

engine: not started

results

Run a query to see rows here.

check

JSON_ARRAY(query) on an empty set

JSON_ARRAY(SELECT ...) now returns [] for no rows, not NULL.

task

For customers 1 to 5 return customer_id and JSON_ARRAY(SELECT order_id ... ORDER BY 1 RETURNING jsonb) of their orders.

hints