| 
							
					| Beginner |  
					|  |  Joined: Tue Oct 25, 2005 2:44 am
 Posts: 20
 Location: Sydney, Australia
 | 
				
					| Hi, 
 I need to update a customers balance relative to what it currently is, i.e. balance = balance + ordervalue (I don't want or care about concurrency checks).
 
 I have placed the balance in a separate class and track the changes made to the balance so I know the relative difference (i.e. ordervalue). How do I get from there to executing sql like the following, or is there a another way?
 
 update customer set balance = balance + 20 where ....
 
 Cheers, Kerry
 
 
 |  |