Search ⌘K
Amazon
Amazon

Foundations Track · Easy · 15 min

Odd And Even Transactions

Amazon wants a operations review for odd and even transactions. Return separate totals for odd-numbered and even-numbered measurement days. Return two column...

Foundations Track
Easy
15 min
query basics

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

Timer 00:00
Back to practice

Objective

Practice query basics through a Amazon-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.

Amazon wants a operations review for odd and even transactions. Return separate totals for odd-numbered and even-numbered measurement days. Return two columns named odd_day_total and even_day_total.

sensor_measurements
measurement_id INT
measured_on DATE
reading_value INT
measurement_idmeasured_onreading_value
12024-06-018
22024-06-025
32024-06-037
42024-06-046
52024-06-054
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.