sql语句 - 分组后取每组的50条记录
摘要:
Select * From MovieList m1 where ID in (select top 50 ID from MovieList m2 where m2.agency = m1.agency order by m2.id desc) order by agency 记录下这句sql,第一次看到如此的用法,可能会在数据量大的情况下性能不好,不过能写出这样的语句,思维能力让... 阅读全文
posted @ 2007-11-27 17:16 littlebamboo 阅读(1072) 评论(0) 推荐(0) 编辑