📖 Story
Urban Company · Home Services Ops Analytics
Urban Company's growth team is designing cross-sell nudges: if most people who start with AC Repair come back for Home Cleaning, the app should suggest Home Cleaning right after an AC Repair job. To find these paths they need, for every customer, the first service they booked and the second service they booked. A cancelled booking is not a real purchase, so it must be ignored when deciding what was 'first' and 'second'. Customers who have booked only one real service so far should still appear, with second_service = NULL — meaning 'hasn't come back yet', which is exactly the group the nudge campaign is meant to target.