日期:2014-05-18 浏览次数:20664 次
select a.aid, a.date, a.title, b.bid, b.title, b.date,
(select username from tablec where userID=a.userID)username
from tablea a inner join tableb b on a.aid=b.aid
where not exists(select 1 from tableb where aid=b.aid and date>b.date)