SpinTheMic
Pro

Interview practice question

Sales by quarter as columns

Data Engineering · SQL · Intermediate

Produce a report with one row per region and columns for Q1, Q2, Q3 and Q4 sales of 2026.

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Use conditional aggregation with SUM(CASE ...).
  • Or PIVOT syntax where available.
  • Filter to 2026 first.
  • COALESCE to show zero instead of NULL.
  • Add a total column for convenience.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics