How to select 10 random records?
movilogoJul 27 2009 — edited Jul 27 2009Requirement is:
Show all records if query returns less than equal to 10 records.
Else
Show random 10 records.
How do I achieve that using SQL alone?
Tried with sample but that didn't work. The number of records in table continuously growing.
Thanks