haitao · 2008-01-21 06:47:47 · 阅读: 453 大概意思 select * from tb where rootid in ( select top 10 rootid ( select rootid,max(messageid) as flast from tb group by rootid ) a order by flast desc )