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...
Company labels are directional practice context, not official interview guidance.
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 | measured_on | reading_value |
|---|---|---|
| 1 | 2024-06-01 | 8 |
| 2 | 2024-06-02 | 5 |
| 3 | 2024-06-03 | 7 |
| 4 | 2024-06-04 | 6 |
| 5 | 2024-06-05 | 4 |
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.