Forum Discussion

yaronch7's avatar
yaronch7
Regular Visitor
9 years ago
Solved

Days between the first order and the second order

How to calculate the days between the first order and the second order

 

order table :

 

account#, year,qurter,month,day

11111      2016  Q3   April    10

11111      2016  Q3   April    15

 

I want to get

 

account  daye_betwen_purchas

111111                   5

 

 

I tried to use with Matrix or to calculate with LASTDATE function , but didnt worked well , what is the recomnded approach

3 Replies