This question has already been answered:
- Sampling random and unique values from db 1 answer
- Random selection of mysql records 8 answers
There is a table of transport. There are 30 entries that I should receive at random. Every time when I open the page, there should be a query to the database where I get 10 records out of 30 randomly. How to do it on MySQL?
ORDER BY RAND()anymore? - Dmitriy Simushev