写出一条Sql语句: 取出表A中第31到第40记录(SQLServer, 以自动增长的ID作为主键, 注意:ID可能不是连续的。)
该怎么写这个SQL语句
select top 10 * from Table where ID not in (select top 30 ID from Table)
select top 10 * from (select * from table where id not in (select top 20 id from table1))