db.l3.ai

Play

lessons

what-changed-in-19

editor

engine: not started

results

Run a query to see rows here.

check

count variants

count(*) counts rows. count(col) counts rows where col is not NULL. count(DISTINCT col) counts the different non-NULL values.

task

For orders: count(*), count(coupon), count(DISTINCT coupon) in one row.

hints