Master the SQL patterns Amazon asks across BIE, Data Analyst, and SDE roles. Practice e-commerce queries, business metrics, and analytics with real datasets and AI tutoring.
34 challenges
Amazon patterns
Real datasets
E-commerce & logistics
AI tutor
Step-by-step hints
What is sourced: Amazon does not publish its interview format, so every specific about their process on this page is what candidates and prep guides described publicly — each one carries its source and the date it showed. Formats change; treat them as reported, not official. What is ours: the practice questions are SQL Quest challenges, picked because their SQL matches the patterns those sources report. They are not questions Amazon has asked.
Amazon does not publish the format. Each row is what candidates and prep guides have described publicly, with its source; where sources disagree, the row says so. Formats change — treat every specific as reported, not official. The sources below describe Business Intelligence Engineer / data analytics roles; other teams at Amazon may run a different loop.
| Stages | A recruiter screen of about 30 minutes, one or two technical phone screens, then a virtual onsite loop of about five rounds.[1][2] |
|---|---|
| Round length | One candidate report puts the technical phone screens at 75 minutes each and the onsite rounds at roughly 60 minutes. A prep guide describes the onsite as five to six rounds of 45 minutes to an hour.[1][2] |
| Environment | The same report describes SQL written on a "CoderPad-style" editor where you often cannot execute the query, so correctness has to be reasoned rather than run.[1] |
| What the SQL round covers | Joins, window functions and ranking, with follow-ups on edge cases; the guide says to expect at least five questions across SQL, Python, visualisation and business analytics in the technical screen, without splitting out how many are SQL.[1][2] |
| Alongside the SQL | Leadership Principles come up throughout, including inside technical rounds — not only in the behavioural ones.[2][1] |
Sources: Blind — "Amazon Business Intelligence Engineer (BIE L5) Interview 2025" (candidate report, replies to 15 Oct 2025) (14 Sep 2025); Exponent — Amazon Business Intelligence Engineer interview guide (shown as "updated 2 months ago" on 14 Sep 2026). Accessed 14 Sep 2026.
The 34 challenges tagged Amazon in the SQL Quest bank, with every raw challenge tag resolved to the 9 canonical skills. Each share is the portion of those 34 challenges that exercise the skill — a challenge exercises several, so the shares do not sum to 100%. This is the composition of the practice set on this page, not a measurement of Amazon’s interview.
These are SQL Quest challenges chosen because their SQL matches the work — Querying Basics, Aggregation & Grouping, Subqueries & CTEs. They are not questions Amazon has asked, and this page does not claim to know its questions. Each card opens the challenge itself. Cards marked Free are open to free accounts — any of the six can be one of your 10 free challenge solves — and Pro opens every card.
These are SQL Quest challenges matched to the topics candidates report for Amazon — not questions Amazon has asked.
Every query here runs on SQLite in your browser. Joins, GROUP BY, CTEs and window functions are written the same way in PostgreSQL, MySQL and Snowflake; dates are where they differ (SQLite's strftime('%Y-%m', ts) is to_char(ts, 'YYYY-MM') in PostgreSQL), and the app lists each difference beside every challenge.
Drill the skills the Amazon set leans on, one at a time: GROUP BY exercises · CTE practice · Window function practice · JOIN practice · CASE WHEN practice — or browse every SQL practice question.
Every question in the Amazon set, one page each with the schema and a hint: Pivot: Order Status by Country · Customers Who Never Ordered · EXISTS vs IN: Departments with Top Performers · Genres Without Blockbusters · Performance vs Salary Analysis · Conditional Counting with CASE · Inactive Customers by Tier · Running Total Revenue · 7-Day Rolling Revenue Average · Multi-CTE Revenue Pipeline · First and Last Order per Customer · Top Spender Per Country · Moving Average with Dynamic Window · Detect Repeat Buyers Within 7 Days · Recursive Team Size Rollup · Customer Lifetime Value · Daily Active Customers · Revenue Share by Category (Window %) · Order Status Dashboard · Engagement Streaks (3+ Orders, ≤7-Day Gaps) · Top-N Products per Category · Deduplicate Orders with ROW_NUMBER · Anti-Join Pipeline: Unmatched Records · Customers with Orders in ALL Categories · Sliding Window Max Revenue · Customer Lifetime Value Pipeline · Top Spender per Membership Tier · Recursive Org Chart Traversal · Order Funnel Conversion · Self-Join: Repeat Orders Within a Week · Month-over-Month Revenue Growth · Island Length Classification · Department Salary Percentile Buckets · Second Highest Salary per Department.
General guidance about analytics SQL work — not sourced from Amazon and not a description of its process. We have no dated, citable source for how Amazon runs its SQL round, so this page states none.
All 34 Amazon-tagged challenges, about three a day, in the order the patterns build on each other. Every solved challenge shows its solution. Cards marked Free are open to free accounts — your first 10 challenge solves are free, enough for the 7 Medium challenges and the 3 Hard previews — and Pro opens every card. Queries run in the browser — no setup, no signup to start.
Amazon publishes its Leadership Principles, and behavioral follow-ups in data loops are commonly framed around them. So after every query in this plan, practice a one-sentence Dive Deep answer: what decision this number would drive, and what you would check before trusting it. We do not know which questions any loop uses; these are the patterns that show up in analyst-round questions.
Analyst-round questions start with counting the right thing: who never ordered, how orders split by status, who bought in every category. Get the join direction and the HAVING clause right before touching window functions.
Day 1 · Customers Who Never Ordered
Measures: Joins
Day 1 · Inactive Customers by Tier
Measures: Aggregation & Grouping · Joins · Subqueries & CTEs
Day 2 · Pivot: Order Status by Country
Measures: Aggregation & Grouping · Conditional Logic
Day 2 · Conditional Counting with CASE
Measures: Aggregation & Grouping · Conditional Logic
Day 2 · Performance vs Salary Analysis
Measures: Aggregation & Grouping · Conditional Logic
Day 3 · EXISTS vs IN: Departments with Top Performers
Measures: Aggregation & Grouping · Subqueries & CTEs
Day 3 · Genres Without Blockbusters
Measures: Subqueries & CTEs
Day 3 · Customers with Orders in ALL Categories
Measures: Aggregation & Grouping · Subqueries & CTEs
Day 4 · Customer Lifetime Value
Measures: Aggregation & Grouping · Joins
Day 4 · Order Status Dashboard
Measures: Aggregation & Grouping · Subqueries & CTEs
Day 4 · Order Funnel Conversion
Measures: Aggregation & Grouping · Conditional Logic
Day 4 · Daily Active Customers
Measures: Aggregation & Grouping
Running totals, rolling averages and period-over-period growth. The frame clause is where candidates lose points: LAST_VALUE with the default frame returns the current row, not the last one. Two of these days start on a Hard preview.
Day 5 · Running Total Revenue
Measures: Aggregation & Grouping · Subqueries & CTEs · Window Functions
Day 5 · Revenue Share by Category (Window %)
Measures: Aggregation & Grouping · Window Functions
Day 6 · 7-Day Rolling Revenue Average
Measures: Aggregation & Grouping · Subqueries & CTEs · Window Functions
Day 6 · Moving Average with Dynamic Window
Measures: Aggregation & Grouping · Joins · Subqueries & CTEs
Day 6 · Sliding Window Max Revenue
Measures: Aggregation & Grouping · Window Functions
Day 7 · First and Last Order per Customer
Measures: Window Functions
Day 7 · Month-over-Month Revenue Growth
Measures: Aggregation & Grouping · Subqueries & CTEs · Window Functions
Day 8 · Department Salary Percentile Buckets
Measures: Conditional Logic · Window Functions
Day 8 · Second Highest Salary per Department
Measures: Subqueries & CTEs · Window Functions
Multi-step pipelines: dedupe, rank, find streaks, walk a hierarchy. Name each CTE for what it holds and the interviewer can follow you. Day 9 opens on a Hard preview.
Day 9 · Multi-CTE Revenue Pipeline
Measures: Aggregation & Grouping · Joins · Subqueries & CTEs
Day 9 · Anti-Join Pipeline: Unmatched Records
Measures: Aggregation & Grouping · Joins · Subqueries & CTEs
Day 10 · Top-N Products per Category
Measures: Aggregation & Grouping · Subqueries & CTEs · Window Functions
Day 10 · Deduplicate Orders with ROW_NUMBER
Measures: Subqueries & CTEs · Window Functions
Day 10 · Top Spender Per Country
Measures: Aggregation & Grouping · Subqueries & CTEs
Day 10 · Top Spender per Membership Tier
Measures: Aggregation & Grouping · Joins · Subqueries & CTEs
Day 11 · Detect Repeat Buyers Within 7 Days
Measures: Joins · Date Functions
Day 11 · Self-Join: Repeat Orders Within a Week
Measures: Joins · Date Functions
Day 11 · Engagement Streaks (3+ Orders, ≤7-Day Gaps)
Measures: Aggregation & Grouping · Subqueries & CTEs · Window Functions
Day 11 · Island Length Classification
Measures: Aggregation & Grouping · Subqueries & CTEs · Conditional Logic
Day 12 · Recursive Team Size Rollup
Measures: Aggregation & Grouping · Joins · Subqueries & CTEs
Day 12 · Recursive Org Chart Traversal
Measures: Joins · Subqueries & CTEs
Day 12 · Customer Lifetime Value Pipeline
Measures: Aggregation & Grouping · Joins · Subqueries & CTEs
Day 13: open the Amazon filter, pick three challenges you have not solved, set 45 minutes, no hints — and say the approach out loud before writing SQL. Day 14: redo, cold, every challenge you needed a hint for during the first twelve days. A pattern you can only solve with the hint open is not yet a pattern you know.
Skillmap
Ten questions, no signup. You get a readiness score weighted to the SQL this page covers, your Skillmap across joins, window functions, aggregation and the rest, and the weakest skill to practise first.
No signup required. No credit card. Open the app and start practicing Amazon SQL patterns right now.
Launch SQL Quest — It's Free ⚡Works on Chrome, Firefox, Safari, Edge · No plugins · No downloads
Interviewing at more than one company? The same patterns carry: Meta · Google · Apple · Netflix — or the full company-by-company interview guide.