Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Quick Refresher
PARTITION BY ORDER BY with Ranking
12. Even More Practice!
PARTITION BY ORDER BY with Window Frames
Using PARTITION BY ORDER BY with Analytical Functions
Summary and Review

Instruction

Ok! One more, please.

Exercise

Divide the sales results for each store into four groups based on the number of transactions. For each store, show the: StoreId, the Day, and the Transactions for all rows in the group with the lowest numbers of transactions.

Stuck? Here's a hint!

Remember to use a temporary table.

Use NTILE(4) OVER(PARTITION BY StoreId ORDER BY Transactions ASC).