Frank said:
How can I get a query to get first 100 records of a 1000 record table,
then the second 100 and so on to get 10 equal lists. I want
the list to be sorted on the Hobbies field prior to doing the queries.
Any help would sure be appreciated.
Thanks, Frank
Frank,
You should explain to us a little bit more of what you are trying to do or
accomplish. However let me approach with a guess: There is a TOP clause in
SQL language that allows you to returns a certain number of records that
fall at the top or the bottom of a certain range. The range is specified by
an ORDER BY clause. Suppose you want the names of the "Top 10 Richest People
in America:"
SELECT TOP 10
PersonsName, FortuneInMillions
FROM tblWorldsReachestPeople
WHERE Country = "United States"
ORDER BY FortuneInMillions DESC;
[Luckily my name will rank on this category ;-)
You can also use the PERCENT reserved word to return a certain percentage of
records that fall at the top or the bottom of a range specified. Ex.: SELECT
TOP 10 PERCENT [fields.......
Alternatively, you could use the "TopValues" property of a query to achieve
the same result. Note that the "TopValues" property applies only to Append,
Make-table, and Select queries.
Hope that helps.