S
salesi
Can someone kindly assist me on writing a query on the current tabl
below that will return my desired result (also detailed below).
Current Table
Date Item Amount
1/april/2002 Car 100.00
1/april/2003 Car 200.00
1/april/2004 Car 300.00
1/april/2002 Truck 400.00
1/april/2003 Truck 500.00
1/april/2004 Truck 600.00
*** Desired Table - with a new field that shows the amount of an item
year ago.
Date Item Amount Amount_last_year
1/april/2002 Car 100.00 0
1/april/2003 Car 200.00 100.00
1/april/2004 Car 300.00 200.00
1/april/2002 Truck 400.00 0
1/april/2003 Truck 500.00 400.00
1/april/2004 Truck 600.00 500.0
below that will return my desired result (also detailed below).
Current Table
Date Item Amount
1/april/2002 Car 100.00
1/april/2003 Car 200.00
1/april/2004 Car 300.00
1/april/2002 Truck 400.00
1/april/2003 Truck 500.00
1/april/2004 Truck 600.00
*** Desired Table - with a new field that shows the amount of an item
year ago.
Date Item Amount Amount_last_year
1/april/2002 Car 100.00 0
1/april/2003 Car 200.00 100.00
1/april/2004 Car 300.00 200.00
1/april/2002 Truck 400.00 0
1/april/2003 Truck 500.00 400.00
1/april/2004 Truck 600.00 500.0