Search ⌘K
Alibaba
Alibaba

Foundations Track · Easy · 15 min

Alibaba Compressed Mode

You're given a table containing the item count for each order on Alibaba, along with the frequency of orders that have the same item count. Write a query to ...

Foundations Track
Easy
15 min
filtering
aggregation

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

Timer 00:00
Back to practice

Objective

Practice filtering through a Alibaba-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

You're given a table containing the item count for each order on Alibaba, along with the frequency of orders that have the same item count. Write a query to retrieve the mode of the order occurrences. Additionally, if there are multiple item counts with the same mode, the results should be sorted in ascending order. [Full Description]

order_item_counts
item_count INT
order_occurrences INT
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.