Solved

Want to get groups of 100 records

Posted on 2011-02-15
1
310 Views
Last Modified: 2012-05-11
I can get the top 100 records by

select top 100 LastName from clientinformation

is there any way to get the 201 - 300th record 301 - 400th record and so on ....

Thanks
0
Comment
Question by:Charles Baldo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 34903757
How about:
// 200 - 300
SELECT TOP 100 LastName FROM clientInformation
WHERE LastName NOT IN (SELECT TOP 100 LastName FROM clientInformation)

// 300 - 400
SELECT TOP 100 LastName FROM clientInformation
WHERE LastName NOT IN (SELECT TOP 200 LastName FROM clientInformation)

// 400 - 500
SELECT TOP 100 LastName FROM clientInformation
WHERE LastName NOT IN (SELECT TOP 300 LastName FROM clientInformation)

etc.

Open in new window

0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Do you hate spam? I do, and I am willing to bet you do as well. I often wonder, though, "if people hate spam so much, why do they still post their email addresses on the web?" I'm not talking about a plain-text posting here. I am referring to the fa…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question