I have an application in which I need to display \"pages\" of data in a list. The basic idea is fairly common. The display shows a list of items and at the bottom of the dis
Something like this should do...
SELECT * FROM (
SELECT *, ROW_NUMBER() OVER (ORDER BY LastName, FirstName, DoB) AS __RN
FROM CampaignParticipants
WHERE LastName LIKE 'R%') innerData WHERE __RN BETWEEN 1 and 100
However, you should be using the column names, not '*'. I don't know what your tables look like so I can't fill that in for you.