这是我的桌子offs
:
date ---------- oid ------ head ----- cnt
2012-1-9 -----13 -------- 10 -----------1
2012-1-11 --- 13 -------- 6 ----------- 2
2012-1-22 --- 13 -------- 10 -----------3
2012-1-22 --- 11 -------- 10 -----------4
我需要一个 select 函数,其结果是max(date)
from oid 和 distinct 头,如下所示:
2012-1-11 --- 13 -------- 6 ----------- 2
2012-1-22 --- 13 -------- 10 -----------3
2012-1-22 --- 11 -------- 10 -----------4