Select top 10 * From MyTable Where PrimaryKeyField Not In (Select top 10 PrimaryKeyField From MyTable Order By MySequenceField) Order By MySequenceField
SELECT col1, col2, col3 FROM ( SELECT col1, col2, col3, ROW_NUMBER() OVER( ORDER BY col1,col2) as rownum FROM MyTable ) a WHERE rownum BETWEEN 40 AND 50
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)