permanentE
Programmer
I need some help.
My table daily_stats has these fields:
rowid, collectorid, entrytime, numcomplete
Each collectorid has an entry once a day at time entrytime, but sometimes the entry is not complete. What I'm trying to get:
For each collectorid, what is the rowid of the last entry that has numcomplete > 1440?
My incorrect solution (it is not valid SQL):
select rowid, max(entrytime) from daily_stats where numcomplete > 1440 group_by collectorid
-thanks
My table daily_stats has these fields:
rowid, collectorid, entrytime, numcomplete
Each collectorid has an entry once a day at time entrytime, but sometimes the entry is not complete. What I'm trying to get:
For each collectorid, what is the rowid of the last entry that has numcomplete > 1440?
My incorrect solution (it is not valid SQL):
select rowid, max(entrytime) from daily_stats where numcomplete > 1440 group_by collectorid
-thanks