SQL practice / Amazon
Free SQL interview practice

Amazon SQL interview questions. All free.

5 SQL practice questions in our Amazon collection, part of our 188-question bank across 23 companies. Write SQL against practice datasets and get checked in your browser. Free, no card or trial.

No account needed to start. Draft SQL stays in this browser; create an account to sync solved history.

2 Easy · 1 Medium · 2 Hard

Independent practice resource. Not affiliated with or endorsed by Amazon.

Inside the Amazon set

SQL topics you can practice.

These topics come from the questions in this set. Pick one to open the matching problems.

Easy · 5 min

Products With Zero Orders This Month

Find all products that had no orders placed in March 2026. Return product_id, product_name, and category. This helps identify inventory that might need restocking or promotional attention.

Tables: products, orders
Medium · 10 min

7-Day Rolling Average of Daily Order Value per Category

Calculate the 7-day rolling average of daily order value (completed orders only) for each product category. Return category, order_date, daily_order_value, and rolling_7d_avg. This helps identify trends and seasonal patterns in category performance.

Tables: orders, products
Hard · 15 min

Customer Cohort Retention — Prime vs Non-Prime

Analyze retention for Prime vs Non-Prime customers across their first 4 weeks post-signup. Bucket cohorts by their signup week, then calculate what percentage of each cohort completed an order in each of the 4 weeks following signup. Return cohort_week, week_number (1-4), segment (Prime/Non-Prime), and retention_percentage.

Tables: customers, orders
The bank

Amazon SQL questions. Start typing SQL.

5 Amazon problems, each with its own dataset. Click one and you’re in the workspace, free, right in your browser.

How it works

Solve in the browser. Checked instantly.

  1. 1
    Pick a problemPractice questions for data science and analytics interviews, each with its own tables, difficulty, and time target.
  2. 2
    Write and run SQLA full database engine loads in the tab. No setup, nothing to install — query the practice dataset immediately.
  3. 3
    Submit for a verdictPass and move to the next problem. Miss and you unlock the expected output and a reference solution.
Products With Zero Orders This MonthAmazon

Your dataset

products

product_id (INTEGER) · product_name (VARCHAR) · category (VARCHAR) · price (DECIMAL) · seller_id (INTEGER)

orders

order_id (INTEGER) · customer_id (INTEGER) · product_id (INTEGER) · order_date (DATE) · total_amount (DECIMAL) · status (VARCHAR)

Try this Amazon question
5
Amazon questions
188
questions in the full bank
$0
free access

Solve one now. Build your solved history.

Start free, no account needed. When you create one, everything you’ve solved comes with you — solved marks, streaks, and concept ratings on your dashboard.

Practice Amazon SQL free

Create a free account to sync solved history →