How can I best write a query that selects 10 rows randomly from a total of 600k?
This is how I do it:
select * from table_with_600k_rows where rand() < 10/600000 limit 10
I like it because does not require other tables, it is simple to write, and it is very fast to execute.