Search ⌘K
Microsoft
Microsoft

Foundations Track · Medium · 25 min

Highest

Microsoft is reviewing highest through a scorecard. Return the highest-grossing product_id in each category during June 2024 along with category and total_re...

Foundations Track
Medium
25 min
query basics
aggregation

Company labels are directional practice context, not official interview guidance.

Timer 00:00
Back to practice

Objective

Practice query basics through a Microsoft-tagged business scenario.

Approach

Use this track to lock in clean query structure, basic filtering logic, and confidence with grouped output.

Company context

Company labels are directional practice context, not official interview guidance.

Prereq: query basics
Prereq: filtering

Microsoft is reviewing highest through a scorecard. Return the highest-grossing product_id in each category during June 2024 along with category and total_revenue. Sort by category.

order_items
order_id INT
category VARCHAR(20
order_idcategory
1Home5011202024-06-01
2Home5011002024-06-03
3Home5023002024-06-04
4Tech6012002024-06-02
5Tech6022502024-06-03
6Tech6022002024-06-05
7Beauty701902024-06-06
8Beauty702702024-06-07
Editor
SQL workspace

Run queries against the protected question data, then submit once the result shape looks right.

Sign in to run SQL

Create a free account or sign in before running queries against protected question data.