I have the following query..
SELECT p.product_id,p.description,sum(sl.qty*sl.factor) as qty
FROM sale_line as sl
LEFT JOIN sale as s ON(sl.sale_id=s.sale_id)
LEFT JOIN product as p ON(p.product_id=sl.product_id)
ORDER BY sl.product_id DESC;
I want to get "sum(sl.qty*sl.factor) as qty" field to round into two decimal places. Eg. if the result get '13.170000484884', I want to round into '13.17' to the result.