Question : How do I write an SQL UPDATE statement on a price value?

Hi,

I have a 'price' column in my table (tblCrmPriceListDetailObjects) of type decimal (18,4) with a typical value of '9999.7000'. Unfortunately it is now required that I round all values to the nearest pound, i.e. '7999.7000' will become '8000.0000' and '7999.3000' will become '7999.0000'. How can I perform this within an SQL UPDATE statement?

Thanks.

Answer : How do I write an SQL UPDATE statement on a price value?

sorry:
1:
2:
3:
UPDATE tblCrmPriceListDetailObjects
SET price = ROUND(price,0)
WHERE crm_price_list_detail_object_id = '48881'
Random Solutions  
 
programming4us programming4us