回复:非常感谢 nice2u回答了我问的SQL问题, it works!

如果是SAS, 不用那么复杂。不是SAS,下面的SQL就不行了。

select min(begdate) as begdate, enddate
from sometable
having enddate = max(enddate);

请您先登陆,再发跟帖!