I’m having a problem trying to find out how to assign ordinal values to variables, perhaps by using some sort of CASE statement approach. I need to calculate the DATEDIFF between dates in a database, but, in order to aggregate the average DATEDIFF, I need to order the dates so that I can calculate the difference between the 1st and 2nd dates when a customer called, the 2nd and 3rd, and so on. I would be most grateful if someone could offer advice.
Cheers
FSH
Cheers
FSH