i want do the following but am limited by my version of mysql which I
am not able to upgrade. please advise.
uptime_table
************
date
num_days_up
....
************
I want select to get the value of num_days_up from the last recorded
day of each month for the current year. The current year is passed as
a variable. So the result should be 12 rows.
So far I've found I can group by month by using group by
FORMAT_DATE(dat e,'%m'). I also found that: "select num_days_up,
max(date) ..." returns the correct date but not the corresponding
num_days_up. I would like to use a subquery but apparently 3.23
doesnt have support for them.
am not able to upgrade. please advise.
uptime_table
************
date
num_days_up
....
************
I want select to get the value of num_days_up from the last recorded
day of each month for the current year. The current year is passed as
a variable. So the result should be 12 rows.
So far I've found I can group by month by using group by
FORMAT_DATE(dat e,'%m'). I also found that: "select num_days_up,
max(date) ..." returns the correct date but not the corresponding
num_days_up. I would like to use a subquery but apparently 3.23
doesnt have support for them.
Comment