How would you demonstrate your SQL skills from easy to hard problems?
Use the provided tables to produce a progressively realistic analytical result involving users, fee tiers, and Spot trading activity. Include only filled trades executed during January 2025, while retaining users with no qualifying trades.
Output
- One row per user, with
user_id, tier_name, total_volume, and volume_rank
total_volume is the user's January filled-trade quote volume, with zero for no qualifying trades
- Ranks restart for each tier, with tied volumes sharing a rank
- Sort by
tier_name, volume_rank, then user_id