I want to return the total sales. That is to say the UnitPrice + TaxAmount for the entire set of data. I can write the SQL query two different ways with the same result returned.
SELECT SUM(UnitPrice + TaxAmount) AS 'TotalSales' FROM Sales
or
SELECT SUM(UnitPrice) + SUM(TaxAmount) AS 'TotalSales' FROM Sales
Is one of these queries perferrable over the other (performance or otherwise)? Or is this just a matter of taste?