Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Random Record Query

Status
Not open for further replies.
Feb 20, 2001
24
US
Hi,
I'm trying to create a query which returns the records in a random order every time the query is run. Any way to do this or any ideas? Thanks in advance??
 
One way to do it may be to use the rnd (random) function on a numerical field as the sort criteria

e.g. select * from yourtable
order by rnd(anumericalfield)

Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top