I need help with a calculation in a SQL update statement in a stored procedure. I am doing a insert-select combined statement by inserting into a table while selecting from another table. I then update to the table that I was inserting with fields that are not in the insert-select combined statement(hopefully this makes sense). On the update statement below I am trying to calculate the Mileage rate minus fuel times the total miles ran. So basically I need 1.3748-0.028 X DailyCSV.EMILEAGE. I am not even sure if it is possible but does anyone have any ideas on this. 01.insert into dailycsv(DailyCSV.DEST, 02. DailyCSV.RGCODE, DailyCSV.RUNSEQ,<STRONG>DailyCSV.E_MILEAGE</STRONG>) 03. SELECT Distinct DOMICILE, ROUTE, SEQUENCE, RTMILES 04.FROM ['Summary - Route Master$'] 05.WHERE (M = 'Y') 06. 07.update dailycsv set LPCODE='CMK', PERIOD=convert(varchar(6), getdate(), 112), 08.ROUTEDATE=convert(varchar, getdate(), 112), 09.<STRONG>MILEAGE_RATE='1.3748', E_FUELSURCHARGE='-0.028'</STRONG>, E_FLATCOST='0', E_FLATCOST1='0', 10.E_FLATCOST2='0'