HardScenarioAdvanced SQL
A top N per group query is slow on a billion row table. What would you try?
This answer is part of Pro
48 of 348 Data engineering answers are free. A Pro pass opens the rest, including hands-on task steps.
PreviousWhat is the difference between hash join, merge join and nested loop join?Next Write SQL for sessionisation, sessions split after 30 minutes of inactivity.