Please look at the attached image
I am having 1000s of rows in purchase table, I want the fetch 10 rows each in desending order (date), like bottom to first, as that we use in pagination.
Suppose I have 30 rows then the output will be
30-20
20-10
10-1
how can I achieve this?
if I use
SELECT TOP 10 * FROM purchase ORDER BY date DESC
then I am getting 30-20 rows then the next row will be fetch 20-10 and then 10-1 (until it reaches the top row)
Please help

Nilesh ShahRank #42 · 34.2K reputationPosted Feb 24, 2017, 10:57 AM EST
Bryian TanRank #396 · 6.3K reputationPosted Feb 24, 2017, 10:31 AM EST
Nilesh ShahRank #42 · 34.2K reputationPosted Mar 2, 2017, 5:17 AM EST
Nilesh ShahRank #42 · 34.2K reputationPosted Mar 2, 2017, 5:35 AM EST
Nilesh ShahRank #42 · 34.2K reputationPosted Mar 2, 2017, 5:57 AM EST
Nilesh ShahRank #42 · 34.2K reputationPosted Mar 2, 2017, 6:27 AM EST
Bryian TanRank #396 · 6.3K reputationPosted Mar 2, 2017, 9:13 AM EST
Anoop Bansal74 reputationPosted Mar 10, 2017, 6:56 AM EST
Anoop Bansal74 reputationPosted Mar 1, 2017, 5:03 AM EST
Anoop Bansal74 reputationPosted Mar 2, 2017, 5:28 AM EST
Anoop Bansal74 reputationPosted Mar 2, 2017, 5:51 AM EST
Anoop Bansal74 reputationPosted Mar 2, 2017, 6:10 AM EST