i have a table (see below) with orderids and dates...the orderids have multiple occurences...i need the date diff between the current record in that orderid and the preceeding record in the orderid for each orderid record within the that orderid group...i am trying to build a report in crystal to do this and i am thing i will probably need to restructure the table before i can get any usefull data out of this
orderid que_level prior_que_level dt
-----------------------------------------------------
1042 200 0 3/9/2001
1042 5 0 2/23/2001
1042 4 0 2/22/2001
1043 8 0 2/23/2001
1043 2 0 2/23/2001
1044 300 0 2/24/2001
1044 6 0 2/23/2001
1044 5 0 2/23/2001
1044 4 0 2/22/2001
orderid que_level prior_que_level dt
-----------------------------------------------------
1042 200 0 3/9/2001
1042 5 0 2/23/2001
1042 4 0 2/22/2001
1043 8 0 2/23/2001
1043 2 0 2/23/2001
1044 300 0 2/24/2001
1044 6 0 2/23/2001
1044 5 0 2/23/2001
1044 4 0 2/22/2001