A retailer exports one row per completed purchase, with a unique order identifier and a customer identifier. Some customers placed several legitimate orders. A researcher needs a new file containing one row per customer and a field indicating whether that customer used a coupon on any purchase. Which preparation plan best preserves the information needed for this file?
Keep each customer's earliest purchase row, then copy that row's coupon status into the customer file.
Keep each customer's highest-value purchase row, then copy its coupon status into the customer file.
Keep each customer's latest purchase row, then copy that row's coupon status into the customer file.
Combine each customer's purchase records, then flag coupon use if any retained purchase records it.
Unlock full course notes by signing up