In my Database,
There is Data like this,
ID average_time
1 5
2 10
3 15
4 20
5 25
6 30
I create a query;
select total(average_time) from tbl_Timer order by id desc limit 5
It”s give the total of all values.
I want Total of LastFive Data,
How can i Do that?
Try this: