Hi,
I'm trying to build a query that will create a stratified random sample of the records in a database. I want to randomly select 10% of the records entered by each user in the database. For example, in a table called TblHousehold, I record various bits of information about households, as well as recording the individual who entered the data [DataEntry], using a numeric code. Each record is assigned a incremental autonumber as primary key [HouseholdID].
So for each unique value of DataEntry, I want to randomly select 10% of the records, and return a list of selected HouseholdID values.
Any ideas?
Thank you!
Louise
I'm trying to build a query that will create a stratified random sample of the records in a database. I want to randomly select 10% of the records entered by each user in the database. For example, in a table called TblHousehold, I record various bits of information about households, as well as recording the individual who entered the data [DataEntry], using a numeric code. Each record is assigned a incremental autonumber as primary key [HouseholdID].
So for each unique value of DataEntry, I want to randomly select 10% of the records, and return a list of selected HouseholdID values.
Any ideas?
Thank you!
Louise