Select last 30 items per group by
问题 Hopefully the title makes any sense. For this example I'll have the next table in my database measurements ================================== stn | date | temp | time = 1 | 01-12-2001 | 2.0 | 14:30 = 1 | 01-12-2001 | 2.1 | 14:31 = 1 | 03-12-2001 | 1.9 | 21:34 = 2 | 01-12-2001 | 4.5 | 12:48 = 2 | 01-12-2001 | 4.7 | 12:49 = 2 | 03-12-2001 | 4.9 | 11:01 = ================================== And so on and so forth. Each station (stn) has many measurements, one per day second . Now I want to select