0

I have the following query:

SELECT     
 SUM(`SPEND_AMOUNT`) AS 'Total Spend Amount',
 SUM(`SPEND_AMOUNT`)  / COUNT(DISTINCT `INVOICENUMBER`) AS 'Average Spend Amount' 
FROM 
 `TABLE` 

I would like to truncate(?) the results for "Average Spend Amount" to two decimal places.Thanks for the help.

init3
  • 33
  • 1
  • 4

1 Answers1

0

Round(SUM(SPEND_AMOUNT) / COUNT(DISTINCT INVOICENUMBER), 2)

didando8a
  • 130
  • 1
  • 7