Reputation: 35
i have a query like : select id, name from table_name where id is not null limit 10, 20 for mysql; how can i get 10 to 20 records from table in ms access? i know there is no limit keyword and how do i use TOP keyword?
Upvotes: 2
Views: 4246
Reputation: 1128
SELECT * FROM
(SELECT TOP 11 * FROM
(SELECT TOP 20 * FROM table_name ORDER BY 1)
ORDER BY 1 DESC)
ORDER BY 1
Upvotes: 4