Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6976825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:32:47+00:00 2026-05-27T17:32:47+00:00

Is it possible to emulate the following MySQL query: SELECT * FROM `tbl` ORDER

  • 0

Is it possible to emulate the following MySQL query:

SELECT * FROM `tbl` ORDER BY `date` DESC LIMIT X, 10

(X is a parameter)

in MS Access?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T17:32:47+00:00Added an answer on May 27, 2026 at 5:32 pm

    While the Access/JET TOP keyword does not directly provide an OFFSET capability, we can use a clever combination of TOP, a subquery, and a “derived table” to obtain the same result.

    Here is an example for getting the 10 rows starting from offset 20 in a Person table in ORDER BY Name and Id…

    SELECT Person.*
    FROM Person
    WHERE Person.Id In 
          (
            SELECT TOP 10 A.Id
            FROM [
                   SELECT TOP 30 Person.Name, Person.Id
                   FROM Person
                   ORDER BY Person.Name, Person.Id
                 ]. AS A
            ORDER BY A.Name DESC, A.Id DESC
          )
    ORDER BY Person.Name, Person.Id;
    

    Essentially, we query the top 30, reverse the order, query the top 10, and then select the rows from the table that match, sorting in forward order again. This should be fairly efficient, assuming the Id is the PRIMARY KEY, and there is an index on Name. It might be that a specific covering index on Name, Id (rather than one on just Name) would be needed for best performance, but I think that indexes implicitly cover the PRIMARY KEY.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to run a MySQL query using jQuery? I'm trying to emulate
Possible Duplicate: Singleton: How should it be used Following on from Ewan Makepeace 's
I am aware that it's possible to emulate the maxlength property from input elements
Is it possible to emulate boot from flash memory using qemu-system-arm ? (Using Integrator/CP
Given something like DB()->prepare(SELECT * FROM mysql.general_log WHERE user_host LIKE ?); $statement->execute( array('%console%') );
Is it possible to emulate a device sleeping and waking using the Microsoft-supplied device
Possible Duplicate: How do you send email from a Java app using Gmail? How
Is it possible to emulate the camera on the Windows Phone emulator for Windows
Is it possible to emulate object methods in C? I'd like to be able
I was wondering if it's possible to emulate a big-endian behavior, for testing purpose?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.