All interview tracks
BeginnerInterview practice · Junior software engineer

Junior engineer interview: query the application data

Build confidence with filters, joins, NULLs and counts on a realistic product database.

5 questions · 26 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
Recent paid ordersNewFree

Return id, customer_id and order_date for paid orders placed on or after 1 September 2026, sorted newest order_date first and id ascending.

5 min
02
Attach customer namesNew

Return order id, customer name and order_date for paid app orders, sorted by order id ascending.

5 min
03
Missing shipping cityNew

Return id and name for customers whose city is missing, sorted by id ascending.

4 min
04
Products per categoryNew

Return category and product_count for every category, sorted alphabetically by category.

5 min
05
Paid orders per customerNew

Return customer name and paid_order_count for every customer, including zero. Sort by paid_order_count descending, then name alphabetically.

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