M
mr.splarf
Does anyone know what SQL I should use in Access to
return a random set of records ?
i.e. everytime the user presses the refresh button on a
web-page, I want the SQL to select x records completely
at random from a given table.
The records returned should be randomly chosen each time
the select is run (ie not reiterate the same random
numbers each time).
I've got a table with about 40,000 records, and I want a
random 10 records, so obviously I don't want to select
everything and then pick 10 at random afterwards; I want
the initial SQL to just pick 10 records at random and
then return them.
Thanks.
return a random set of records ?
i.e. everytime the user presses the refresh button on a
web-page, I want the SQL to select x records completely
at random from a given table.
The records returned should be randomly chosen each time
the select is run (ie not reiterate the same random
numbers each time).
I've got a table with about 40,000 records, and I want a
random 10 records, so obviously I don't want to select
everything and then pick 10 at random afterwards; I want
the initial SQL to just pick 10 records at random and
then return them.
Thanks.