select zs.fdtime from (select kl.FD_APPLY_DATE fdTime from km_asset_card kc left join km_asset_card_life kl on kc.FD_ID=kl.FD_ASSET_CARD_FDID
where kc.FD_CODE='ICZSNB0016' order by kl.FD_APPLY_DATE desc) zs where rownum<=1,这个sql语句可以实现其中某一个单据的最大时间,但是所有的单据按照这样怎么获取?