Search ⌘K
Company Practice Guide

Amazon practice guide

Stay inside one business context for a few reps in a row while still working from the same live bank used across practice, tracks, and reviews.

17 questions
295 minutes
Sign in to track progress
Amazon
Amazon

Explore 17 Amazon-tagged SQL scenarios focused on query basics, aggregation, date functions.

Context, not signal

Company labels help frame practice in a familiar business context. They are directional study aids, not official interview guidance from the companies listed.

Sign in to track progress while you browse this guide.

Questions

17

Estimated prep time

295 min

Progress tracking

Sign in to track progress
Concept focus

The most common patterns in the current Amazon-tagged set.

Query basics

12

Aggregation

8

Date functions

2

Filtering

2

Joins

2

Mix at a glance

Use the difficulty and path mix to decide whether you want fundamentals, breadth, or stretch reps.

Foundations Track 15
Interview Core Track 2
Easy 13
Medium 4
Suggested rhythm

Start with the easiest scenario in the set, then move upward while tracking accuracy and retry speed. This keeps the context stable while the difficulty rises.

Suggested next scenarios

The next best reps from this company-tagged set based on what you have not solved yet.

Departments Above Average Pay

Practice query basics through a Amazon-tagged business scenario.

Preview Pro question
2024 App Click Volume

Practice query basics through a Amazon-tagged business scenario.

Preview Pro question
Frequent Support Callers

Practice query basics through a Amazon-tagged business scenario.

Preview Pro question
Question list

The current Amazon-tagged list with learning objectives and your latest status.

Departments Above Average Pay

Use this Amazon scorecard to work on departments above average pay. Return each department_id whose average salary exceeds the company average salary for Mar...

Easy
15 min
Pro
query basics
filtering

Practice query basics through a Amazon-tagged business scenario.

2024 App Click Volume

Amazon wants a portfolio scan for 2024 app click volume. Return each app_id and the total number of click events recorded in 2024. Sort by app_id.

Easy
15 min
Pro
query basics

Practice query basics through a Amazon-tagged business scenario.

Frequent Support Callers

At Amazon, analysts are preparing a readout focused on frequent support callers. Return the distinct policy_holder_id values for members who made at least 3 ...

Easy
15 min
Pro
query basics

Practice query basics through a Amazon-tagged business scenario.

Late Shipment Rate By Carrier

At Amazon, analysts are preparing a readout focused on late shipment rate by carrier. Return the percentage of shipments that arrived late by carrier_name. O...

Easy
15 min
Pro
query basics

Practice query basics through a Amazon-tagged business scenario.

Creators With Multiple 2024 Posts

Use this Amazon analysis pass to work on creators with multiple 2024 posts. Return each creator_id that posted at least two items in 2024. Sort by creator_id.

Easy
15 min
Pro
query basics

Practice query basics through a Amazon-tagged business scenario.

Top Sellers By Gross Sales

Use this Amazon planning note to work on top sellers by gross sales. Return the top 3 sellers by total_gross_sales. Output seller_id and total_gross_sales so...

Easy
15 min
Pro
query basics

Practice query basics through a Amazon-tagged business scenario.

Number Of Unique Subjects Taught By Each Teacher

Amazon is reviewing number of unique subjects taught by each teacher through a diagnostic pass. Return each app_id and the total number of click events recor...

Easy
15 min
Pro
query basics

Practice query basics through a Amazon-tagged business scenario.

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...

Easy
15 min
Pro
query basics

Practice query basics through a Amazon-tagged business scenario.

Loss-Making Drug Totals

Amazon is reviewing loss-making drug totals through a scorecard. Return each manufacturer with the number of loss-making drugs and the total absolute loss. S...

Easy
15 min
Pro
query basics

Practice query basics through a Amazon-tagged business scenario.

2128 Book Sales

SELECT b.book_id, COALESCE(SUM(b.unit_price*od.quantity), 0) as total_sales FROM amazon_books b LEFT JOIN amazon_books_order_details od ON b.book_id=od.book_...

Easy
15 min
Pro
joins
aggregation

Practice joins through a Amazon-tagged business scenario.

04 Easy Amazon Purchasing Activity By Product Type

-- purchasing activity by product type -- SELECT t1.order_date, t1.product_type, ( SELECT SUM(quantity) FROM total_trans AS t2 WHERE t2.order_date <= t1.orde...

Easy
15 min
Pro
aggregation

Practice aggregation through a Amazon-tagged business scenario.

09. Average Review Ratings [Amazon Interview]

/* Given the reviews table, write a query to get the average stars for each product every month. The output should include the month in numerical value, prod...

Easy
15 min
Pro
aggregation
date functions

Practice aggregation through a Amazon-tagged business scenario.

Average Product Review Ratings

Amazon is reviewing average product review ratings through a scorecard. The product quality team wants monthly review score reporting. For each product and m...

Easy
15 min
Pro
aggregation
date functions

Practice aggregation through a Amazon-tagged business scenario.

Store Refund Share

Retail finance wants to compare refund pressure by store for April 2024 orders. Return store_id, total_sales, refunded_amount, and refund_pct rounded to two ...

Medium
25 min
query basics
aggregation
joins

Practice query basics through a Amazon-tagged business scenario.

Category Revenue Leaders

During June 2024, each category had multiple products generating revenue. Return the highest-grossing product_id in each category along with category and tot...

Medium
25 min
query basics
aggregation
filtering

Practice query basics through a Amazon-tagged business scenario.

Second-highest Salary

At Amazon, analysts are preparing a performance snapshot focused on second-highest salary. Return the second-highest salary amount in the table as second_hig...

Medium
25 min
Pro
query basics
aggregation

Practice query basics through a Amazon-tagged business scenario.

05 Medium Amazon Highest Grossing Items

-- highest grossing items -- WITH top_sales AS ( SELECT category, product, SUM(spend) AS total_spend FROM product_spend WHERE DATE_PART('year', transaction_d...

Medium
25 min
Pro
aggregation

Practice aggregation through a Amazon-tagged business scenario.