I Have a table with 60 rows data, But now I just want to get ten rows starting from the twentieth row, for example: give me records between 21 and 30. Is there a way can do it? yes, here is the code:
SELECTTOP10 * FROM table1 WHERE id NOTIN ( SELECTTOP20 id FROM table1 ORDERBY id ) ORDERBY id
Btw : There should be a better way , If you've found one, just give me a feedback