Jump to content

[SOLVED] Decimals in a query


TimUSA

Recommended Posts

I am using this query, how do i limit the decimals on the return for avg()

SELECT skipperName, sum( fleetPoints ) AS SumfleetPoints, avg( fleetPoints ) AS rating, count( fleetPoints ) AS races
FROM pts_table
WHERE fleetPoints >0
GROUP BY skipperName
ORDER BY rating DESC , SumfleetPoints, races ASC 

Link to comment
https://forums.phpfreaks.com/topic/90175-solved-decimals-in-a-query/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.