SQL Paged Results

Results 1 to 2 of 2

Thread: SQL Paged Results

  1. #1
    Join Date
    Dec 1969

    Default SQL Paged Results

    i know you can return the first n results using SELECT TOP n ...<BR>does any one know an easy way to get sql to ignore the first n records then get the next say 10 results?<BR>i know of a few methods i could use to do this, but was wondering if anyone here had a better idea?<BR>thanks<BR>:)

  2. #2
    Join Date
    Dec 1969

    Default RE: SQL Paged Results

    use a paged recordset and skip the first page or<BR><BR>SELECT TOP n FROM (SELECT TOP n FROM TABLE ORDER BY field DESC) ORDER BY field ASC<BR><BR>j

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts