I have data as follows
ID Difference in days between 2 consecutive orders
abc. 2
abc. 3
abc. 7
xyz. 4
xyz. 5
I want the result as
ID . Avg time difference between 2 orders
abc. 3(=12/4)
xyz. 4.5(=(4+5)/2