I have the following code:SET tot_sls_amt = (select(A.SumExtUnitPrice*100)/100 from(selecT ord_type,Ord_no,sum((UNIT_PRICE*QTY_ordered)-((unit_price * qty_ordered)*(DISCOUNT_PCT*.01)))as SumExtUnitPrice from oeordlin_sql
I need to round this portion of it before it gets summed:(UNIT_PRICE*QTY_ordered)-((unit_price * qty_ordered)*(DISCOUNT_PCT*.01))
I've tried the following but get the message: Msg 189, Level 15, State 1, Line 453The round function requires 2 to 3 arguments.SET tot_sls_amt = (select(A.SumExtUnitPrice*100)/100 from(selecT ord_type,Ord_no,sum(Round(UNIT_PRICE*QTY_ordered)-((unit_price * qty_ordered)*(DISCOUNT_PCT*.01))),2)as SumExtUnitPrice from oeordlin_sql