摘要: 是查询A(ID,Name)表中第31至40条记录,ID作为主键可能是不是连续增长的列,完整的查询语句如下:网上答案:selecttop 10 * from A where ID >(select max(ID) from (selecttop 30 ID from A order by A) T) order by A我的答案:select top(10) * from A where ID not in (select top(30) ID from A order by ID) order by ID要求是查询表A中存在ID重复三次以上的记录,完整的查询语句如下:网上答案:selec 阅读全文
posted @ 2013-04-20 09:49 AlexHHC 阅读(192) 评论(0) 推荐(0) 编辑