如果是SAS, 不用那麽複雜。不是SAS,下麵的SQL就不行了。
select min(begdate) as begdate, enddate
from sometable
having enddate = max(enddate);
如果是SAS, 不用那麽複雜。不是SAS,下麵的SQL就不行了。
select min(begdate) as begdate, enddate
from sometable
having enddate = max(enddate);
WENXUECITY.COM does not represent or guarantee the truthfulness, accuracy, or reliability of any of communications posted by other users.
Copyright ©1998-2024 wenxuecity.com All rights reserved. Privacy Statement & Terms of Use & User Privacy Protection Policy