The Fifth Fulfillment :Find Each Supplier’s Fifth Largest Order Contribution Intermediate
Reveal each supplier’s fifth largest order contribution, including its timestamp and amount.
Xorthax wants to find each supplier’s fifth largest order by the value of the products that supplier provided. Show the amount and order timestamp. If amounts tie, place the higher order ID first.
Write Your Query
This represents supplier performance tracking, helping businesses compare the value each supplier contributed to different orders.
You’ll practice aggregating line items by supplier and order, then extracting a specific position from each supplier’s ordered results.
This problem is labeled as Intermediate. It assumes you’ve written a few window function queries before, but you don’t need to be an expert. Use the hints and explanations if you get stuck — they’re there to help you think through the logic.
Yes. Every problem comes with optional hints you can reveal one at a time, plus a fully worked step-by-step solution. You decide how much help you want while practicing.
All problems on PracticeWindowFunctions.com are completely free and can be solved without creating an account. Right now there are over 80 practice problems, with new ones added regularly.