By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,379 Members | 1,404 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,379 IT Pros & Developers. It's quick & easy.

SQL Query to select top 10 records except for the top 10 records

missshaikh
P: 43
SQL Query to select top 10 records except for the top 10 records

I just need aSQL Server Query that can select the next 10 records after the first top 10 records.
Jun 25 '08 #1
Share this Question
Share on Google+
1 Reply


deepuv04
Expert 100+
P: 227
Hi,
try the following query

Expand|Select|Wrap|Line Numbers
  1. select top 10 * from Table_Name
  2. where Key_Column_Name not in (select top 10 Key_Column_Name from Table_Name)
  3.  
  4.  
thanks
Jun 25 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.