You're working as a data analyst for a tech retail company and need to identify specific customer purchasing patterns. You have access to two key databases:
Product Table: Contains product information including ID, name, and unit price
Sales Table: Records every transaction with seller, buyer, product, date, quantity, and final price
Your task is to find all buyers who purchased the flagship "S8" smartphone but deliberately avoided buying the "iPhone". This analysis will help the marketing team understand customer brand loyalty and purchasing preferences.
Think of it as finding customers who chose one premium brand over another - valuable insight for competitive analysis!
Return the buyer IDs of these selective customers in any order.
Input & Output
Constraints
- 1 โค product_id โค 100
- 1 โค seller_id, buyer_id โค 100
- product_name is case-sensitive
- Products 'S8' and 'iPhone' are guaranteed to exist in Product table
- buyer_id is never NULL in Sales table