SQL Practice Logo

SQLPractice Online

Scenario SQL Question

Identify Peak Transaction Hours

Build mastery in Date Operations with this scenario-based SQL challenge and live execution support.

Problem Statement

Bucket orders by hour-of-day from order_timestamp and label each hour as a peak window. Return hour_of_day, transaction_count, total_amount, time_period — ordered by transaction_count DESC, hour_of_day.

Relevant Tables

orders

SQL Concepts Used in This Scenario

Strengthen your understanding with these targeted learning topics: