G
Guest
I'm writing a query in which I want to idenify customers who are
"reactivated". Where reactivated means = an order in the current month(feb),
none in three months prior to current(jan-nov), but at least one in the the
three prior to those(oct-aug). I'm grouping by customer so I had to use Max
to get the most recent order date. How can I determine the second and third
most recent orders?
"reactivated". Where reactivated means = an order in the current month(feb),
none in three months prior to current(jan-nov), but at least one in the the
three prior to those(oct-aug). I'm grouping by customer so I had to use Max
to get the most recent order date. How can I determine the second and third
most recent orders?