mrchonginhk
Well-known Member
- Joined
- Dec 3, 2004
- Messages
- 679
How to do offseting like this using Access ? Thanks
Given
Type Month Amount
A 8 100
A 9 200
A 10 300
B 11 -100
B 12 -50
I want B to offset A as follows: Earliest B offset earliest A first
So desired output of query is like this
Type Month Amount
A 9 150
A 10 300
B 11 -100
What is the SQL to do this ? Or using 2 or 3 queries ?
Thanks
Given
Type Month Amount
A 8 100
A 9 200
A 10 300
B 11 -100
B 12 -50
I want B to offset A as follows: Earliest B offset earliest A first
So desired output of query is like this
Type Month Amount
A 9 150
A 10 300
B 11 -100
What is the SQL to do this ? Or using 2 or 3 queries ?
Thanks