The reason we have to "quibble" about words is because that's how we understand the requirements of the question. When communication is unclear, it's impossible to formulate a solution. We need to understand and agree on the meaning before an accurate solution can be provided.
From what I can gather, you're not looking to return a random 10% or even 1/10th of the records each time the query is run. What you're looking for is to section all the records in the table so you can grab the same size grouping each time you run the query until you have processed all the records.
This is very different from a query that returns 10% or 1/10 of the records.
I suspect gnawoncents' code will get you most of the way to your actual requirements.
From what I can gather, you're not looking to return a random 10% or even 1/10th of the records each time the query is run. What you're looking for is to section all the records in the table so you can grab the same size grouping each time you run the query until you have processed all the records.
This is very different from a query that returns 10% or 1/10 of the records.
I suspect gnawoncents' code will get you most of the way to your actual requirements.
Comment