22,300
社区成员




select t2.名称.t2.金额,t2.日期
form 资料 t1,收入 t2
where t1.编号 = t2.编号
and t1.编号=1003
and not exists(select null from 收入 m where m.日期 >t2.日期 and t2.编号 =编号 )
select t2.名称,t2.金额,t2.日期 form 资料 t1,收入 t2 where t1.编号 = t3.编号 and t1.编号=1003
union all
select '',null,max(日期) from 收入 where 编号=1003