What I understood that the only first row is printing with the following code
It's may be because of loop you have specified try using this
float Allday_hours_sum = 0;
while (rs.next()){
Allday_hours_sum += Float.parseFloat (rs.getString("Allday_hours"));
}
And print Allday_hours_sum