Unique visitors per department from click logs

0
Remix

Each product has an id, a department, a category and a subcategory; the last three form a parent-child hierarchy. A click log records (customer_id, product_id). For any department, return the number of distinct customers who clicked a product in it. Discuss answering this for many departments, and at other levels of the hierarchy.

AmazonTechnical phone screenLast asked Sep 2025
No answer yet. Write the first one; the best answer gets endorsed.