sql select random procentage from rows

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

showing results for - "sql select random procentage from rows"
Marie
06 Sep 2019
1-- for 10% -- 
2SELECT * FROM table_name
3	ORDER BY random() 
4	LIMIT (SELECT (COUNT(*)*0.01)::INT FROM table_name);
similar questions
queries leading to this page
sql select random procentage from rows