The Merchant’s Marathon

80. The Merchant’s Marathon

Xorthax wants to know which categories endured the long run of commerce without faltering.

Xorthax wants to see which product categories sell steadily. For each category, find the longest streak of consecutive weeks where at least 10 completed orders in that category was sold. Include the start of the first week and start of the last week in the result set
Write Your Query
Next Problem →
SQL Cookbook (O’Reilly)
SQL Cookbook (O’Reilly)

Practical SQL recipes for real-world querying—great complement to hands-on practice.

(Affiliate link – as an Amazon Associate I earn from qualifying purchases.)