All interview tracks
IntermediateInterview practice · Data analyst

Data analyst interview: make the metric trustworthy

Work through common analyst screens: repeat buyers, missing relationships, rankings and defensible denominators.

5 questions · 34 minutes · Data: Online shop

Practise each question under time pressure, then explain your assumptions, data grain and edge cases aloud before comparing solutions.

Start interview practice
SQL
01
→ 02
→ 03

Your exercises

01
Find repeat buyersNew

Return customer name and paid_order_count for customers with at least two paid orders, ordered by paid_order_count descending and name alphabetically.

7 min
02
Customers with no paid ordersNew

Return the name of every customer who has never placed a paid order, sorted alphabetically. Customers with only refunded or cancelled orders should appear.

7 min
03
Paid orders by channelNew

Return channel and the count of paid orders as paid_orders for every channel with paid orders, sorted by paid_orders descending and channel alphabetically.

5 min
04
Top countries by customersNew

Return country and customer_count for the three countries with the most customers, sorted by customer_count descending and country alphabetically.

6 min
05
Customer paid spendNew

Return customer name and paid_spend (quantity times charged unit_price, rounded to two decimals) for the five highest-spending customers on paid orders. Sort by paid_spend descending, then name alphabetically.

9 min
Queries run on sample company data in SQLite. Core SELECT, JOIN and GROUP BY patterns transfer to other SQL engines; functions, dates and types can differ.