Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started
Your Data Project
00:00
5 left

Your Data Project

MediumSQL · PostgreSQL

Problem

What data project have you conducted?

Use the provided TikTok Shop tables to demonstrate a concise seller-performance data project. Calculate completed-order performance and retain only sellers meeting the minimum order threshold.

Output

  1. One row per seller with at least two completed orders.
  2. Columns: seller_id, seller_name, completed_orders, completed_gmv, and average_order_value.
  3. Sort by completed_gmv descending, then seller_id ascending.

Schema

sellers
ColumnTypeDescription
seller_idPKINTTikTok Shop seller identifier
seller_nameVARCHAR(100)Seller display name
orders
ColumnTypeDescription
order_idPKINTOrder identifier
seller_idINTSeller associated with the order
statusVARCHAR(20)Order lifecycle status
order_dateDATEOrder creation date
order_items
ColumnTypeDescription
order_item_idPKINTOrder item identifier
order_idINTParent order identifier
skuVARCHAR(40)Product SKU
quantityINTUnits purchased
unit_priceNUMERIC(10,2)Price per unit
Tablessellersordersorder_items
Interviewer

Your question is Your Data Project. Start with the requirements and the three tables in the Question tab.

Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.

You need to log in / sign up to run or submit.
CodePostgreSQL
You need to log in / sign up to run or submit.Ln 1
Run your query to see results here.