Marketplace Sellers Who Never Listed Again After Their First Item
Last updated: November 29, 2026
Quick Overview
Find Facebook Marketplace sellers whose first listing was at least 30 days ago and who have created no other listing since, and report the one-and-done share by whether the first item sold.
Meta
November 29, 20260
0
0 solved
Find Facebook Marketplace sellers whose first listing was at least 30 days ago and who have created no other listing since, and report the one-and-done share by whether the first item sold.
Seller retention matters for Marketplace supply, and a quick phone screen asks for the share of sellers who list once and disappear. It checks first-event logic, an anti-join or count condition, and a simple split by outcome of the first listing.
What the Interviewer Expects
- Identify each seller's first listing
- Require at least 30 days of observation after it
- Detect absence of any later listing
- Split by whether the first listing sold
- Return counts and shares
Key Topics to Cover
How to Approach This
- Clarify the schema and expected output format before writing queries.
- Use CTEs (WITH clauses) to break complex queries into readable steps.
- Consider window functions (ROW_NUMBER, RANK, LAG, LEAD) for ranking and sequential analysis.
- Watch for NULLs, duplicates, and edge cases in JOINs and GROUP BY.
- For pandas, prefer vectorized operations over row-by-row iteration.
Possible Follow-up Questions
- Why would you expect sellers whose first item sold to list again more often?
- How would you account for sellers who only had one thing to sell?
- How would you turn this into a 30-day seller retention metric over time?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice SQL ProblemsSample Answer
Clarify the Data
listings(listing_id, seller_id, created_ts, sold_ts); sold_ts is NULL if unsold. One-and-done means exactly one listing in total so far, with the first more than 30 days ago....
Approach
Rank listings per seller to get the first one and count total listings per seller with a window COUNT. Keep sellers whose first listing is old enough, flag total_listings = 1, and group by whether t...