Given a table of customer transactions, how would you write a query to identify customers who made a purchase in consecutive months?