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 ShahPosted Feb 24, 2017, 3:57 PM
Anoop BansalPosted Mar 10, 2017, 11:56 AM
Bryian TanPosted Mar 2, 2017, 2:13 PM
Nilesh ShahPosted Mar 2, 2017, 11:27 AM
Anoop BansalPosted Mar 2, 2017, 11:10 AM
Nilesh ShahPosted Mar 2, 2017, 10:57 AM
Anoop BansalPosted Mar 2, 2017, 10:51 AM
Nilesh ShahPosted Mar 2, 2017, 10:35 AM
Anoop BansalPosted Mar 2, 2017, 10:28 AM
Nilesh ShahPosted Mar 2, 2017, 10:17 AM
Anoop BansalPosted Mar 1, 2017, 10:03 AM
Bryian TanPosted Feb 24, 2017, 3:31 PM