Determine Product Buyer Count and Interaction Percentage
Company: Meta
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Technical Screen
Overview: This question evaluates proficiency in relational data aggregation, joining tables, distinct-entity counting, time-window filtering, and calculating interaction proportions.
Tables
interactions(seller_id INTEGER, buyer_id INTEGER, product_id INTEGER, li INTEGER, create_date DATE)
products(product_id INTEGER, country VARCHAR, category VARCHAR)
Hints
- GROUP BY product_id and use HAVING with COUNT(DISTINCT buyer_id) and SUM(li).
- INNER JOIN interactions to products to filter by product country and category.