Commerce · Interview pack

Shopify data interview pack

37 written questions with answers, the loop shape people report for Shopify, and 6 SQL coding labs to practise. Built from DataLane's original question bank and publicly discussed interview themes, not leaked exams. Last editorial update 2026-05-20.

What is in this pack

Questions by topic

  • SQL2
  • Data modeling8
  • Orchestration3
  • Streaming5
  • Warehouse11
  • System design3
  • Data quality2
  • AI / ML1
  • Behavioral2
  • SQL coding labs6

13 easy · 19 medium · 5 hard

Rounds (1)

  1. dbt + SQL

Themes: Orders grain, Refunds, Incremental dbt

Free with a DataLane account

The first 3 questions are below. Sign in (free, no plan needed) to read all 37 and download the pack as a PDF.

Sign in free to download

Free preview

  1. 1. SQL · hard · SQL

    Deduplicate to the latest customer row. Why not filter the window in WHERE?

    Use row_number() OVER (PARTITION BY customer_id ORDER BY updated_at DESC) in a CTE, then keep rn = 1. Window functions run after WHERE, so a filter on rn in the same SELECT is invalid (unless the dialect has QUALIFY). Interviewers want that evaluation order, not a clever one-liner.

  2. 2. SQL · medium · SQL

    You need “customers who ordered in January and never in February.” Write the shape, not the dialect.

    January set MINUS February set, or EXISTS January AND NOT EXISTS February. A LEFT JOIN to February WHERE feb.key IS NULL is the anti-join they want. IN (SELECT …) dies if February keys contain NULL.

  3. 3. Data modeling · easy · dbt

    What belongs in staging versus a mart?

    Staging is 1:1 with a source: rename, type, light clean. Marts are the business grain a dashboard or feature job can trust. Logic piled into staging is how projects rot. If two marts need the same join, that is an intermediate — not a copy-paste.

34 more questions and 6 SQL labs are in the full pack.

Sign in free to unlock →

Search DataLane

↑↓ navigatealt ↑↓ jump group↵ openesc close