medium10 pts · first answer countswindow-functionssql
What QUALIFY is for
In Snowflake or BigQuery, what does this QUALIFY clause do?
SELECT * FROM orders QUALIFY ROW_NUMBER() OVER (PARTITION BY customer_id ORDER BY order_ts DESC) = 1;
Discussion 0
Join free to post in the discussion.