You can also round it to the upper / lower integer no. using CEIL() and FLOOR() functions.
SELECT ROUND(AVG(compensation),2)
CEIL(AVG(compensation)), FLOOR(AVG(compensation)),
MAX(compensation) AS CompMAX, MIN(compensation) AS CompMIN
FROM crime
WHERE type='Theft';
Main Topics
Browse All Topics





by: jinesh_kamdarPosted on 2007-12-09 at 12:47:36ID: 20438114
SELECT ROUND(AVG(compensation),2) AS CompAVG,
MAX(compensation) AS CompMAX, MIN(compensation) AS CompMIN
FROM crime
WHERE type='Theft';