| Help - Complex Query [message #20535] | 
			Mon, 03 June 2002 05:12   | 
		 
		
			
				
				
				
					
						
						Sulaiman Gboyega N.
						 Messages: 17 Registered: April 2002 
						
					 | 
					Junior Member  | 
					 | 
		 
		 
	 | 
 
	
		Hi All, 
 
Please I will appreciate your help insolving the scenario I described below: 
 
Item    Date        Value1        Value2        Target 
------------------------------------------------------- 
AA1  |  01/01/2002  |  500    |      1500   |      1500 
AA1  |  01/02/2002  |  700    |      1000   |      1000 
AA1  |  01/03/2002  |    0    |         0   |      1000 
AA1  |  01/04/2002  |    0    |         0   |      1000 
AA1  |  01/05/2002  |  900    |      1900   |      1900 
AA1  |  01/06/2002  |    0    |         0   |      1900 
AA1  |  01/07/2002  |  400    |      2300   |      2300 
 
AA2  |  01/01/2002  |  300    |       900   |       900 
AA2  |  01/02/2002  |    0    |         0   |       900 
AA2  |  01/03/2002  |  600    |       100   |       100 
AA2  |  01/04/2002  |    0    |         0   |       100 
AA2  |  01/05/2002  |  500    |       600   |       600 
AA2  |  01/06/2002  |    0    |         0   |       600 
AA2  |  01/07/2002  |  800    |      1400   |      1400 
 
As described in the table above, I have fields Date, Value1 and Value2 and I want to get another field (Target) which contains the amount in Value2 but replaces zeros in value2 with the previous amount of value2. 
 
Thanks for your help. 
 
Sulaiman.
		
		
		
 |  
	| 
		
	 | 
 
 
 | 
	| 
		
 | 
	| 
		
 |