RAND
should be random and you will not get a solid percentile split.
It would be better to use the modulus operator %
to find every X number of items. This does work best with unique id columns like a Primary Key.
Try running this query, be sure to specify your table name and id column name:
Selecting every 2nd row, divisible by 2
SELECT * from <your_table_name> where <id_column_name> %2=0
Selecting every 6th row, divisible by 6
SELECT * from <your_table_name> where <id_column_name> %6=0
Once you hare happy that the SELECT
results look good, you can change the query with update syntax to update the records, using the same WHERE
clause