My table contains this values
productName | purchasePrice | tax | price ------------+---------------+-----+-------- Product 1 | 5099 | 16 | 10099 Pr
In the latest version of SQL-lite the below code works with Round
select SUM(Profit) from ( select productName,round((SUM(price- (price*TAX/100.0 + purchasePrice)))/100 ,2) as Profit from test GROUP BY productName )x
http://sqlfiddle.com/#!5/8eba1/25