select random rows sql

Solutions on MaxInterview for select random rows sql by the best coders in the world

showing results for - "select random rows sql"
Aitana
30 Jan 2019
1SELECT FIELD_NAME FROM TABLE_NAME ORDER BY RAND() LIMIT 1
2/* NOTE if this doesnt work try random() */
Mariana
27 Mar 2017
1SELECT column FROM table
2ORDER BY RAND()
3LIMIT 1
4
Salomé
26 Aug 2020
1 Using a SAMPLE clause, we can select random rows.
2SELECT * FROM table_name SAMPLE(10);