1. SELECTing the total number of registrations and dividing by 100 to get number of iterations for loop 2. for (index=1; index < num_iterations; index++){ SELECT RegistrantLastName FROM registrations ORDER BY RegistrantLastName LIMIT (100 * (i-1)) + 1,1 AS RangeStart; SELECT RegistrantLastName FROM registrations ORDER BY RegistrantLastName LIMIT (100 * i),1 AS RangeEnd; }