Problems / Peak Hour Analysis / Editorial
EXTRACT(HOUR FROM request_time)
F.hour()
RANK() OVER (ORDER BY request_count DESC)
Combining time extraction with ranking window functions lets you identify peak periods. RANK() assigns the same rank to tied values, which is more appropriate than ROW_NUMBER() when multiple hours could share the same traffic level.
RANK()
ROW_NUMBER()
Solve Peak Hour Analysis yourself →