I am using the following code to call the 10 Wettest Days from my database:
Code: Select all
SELECT logdate, date_format(logdate, '%e %b %Y')as date, TotRainFall FROM `dayfile` order by TotRainFall DESC limit 10 It returns the result with two decimal places, ie, 100.90
I've tried using
Code: Select all
.......as date, TotRainFall, FORMAT (TotRainFall,1) FROM `dayfile` order by TotRainFall ......Thanks