Amazon Data & Reporting Analyst Interview Prep
Open SQL Editor Open SQL WorksheetTransactional tables - the "source of truth" with minimal data duplication.
10 rows
Distribution centers
8 rows
Product vendors
48 rows
SKU catalog
200 rows
Customer records
116 rows
Delivery drivers
153 rows
Fleet vehicles
~55K rows
Delivery records
~220K rows
GPS/IoT time-series
~50K rows
Weekly stock levels
~142K rows
Customer orders
~424K rows
Order line items
Pre-aggregated reporting tables - faster queries, but derived from OLTP data.
On-time %, delays, risk by warehouse/day
Revenue, quantity, customers by product/week
Stock levels, reorder alerts by month
25 questions covering common SQL interview topics, plus bonus OLTP vs OLAP comparisons!
The quiz is stored as SQL comments in the database. Run this query:
SELECT * FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'practice';
Or download the quiz file: 005-practice-quiz.sql
1. See all tables:
SHOW TABLES;
2. View table structure:
DESCRIBE shipments;
3. Basic JOIN:
SELECT o.id, c.name, o.total_amount FROM orders o JOIN customers c ON o.customer_id = c.id LIMIT 10;
4. Aggregation:
SELECT category, COUNT(*), SUM(unit_cost) FROM products GROUP BY category;
5. Time-series (OLAP):
SELECT report_date, warehouse_name, on_time_count, late_count FROM daily_delivery_metrics WHERE report_date >= '2024-01-01' LIMIT 20;