Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Statistical sampling and representative stats collection
Raj,
Would the temp have gotten the same result by counting the frequencies of
the letters in the game of scrabble?
Chaim
"Jamadagni, Rajendra" <Rajendra.Jamadagni_at_espn.com>@fatcity.com on 05/22/2002 11:53:22 AM
Please respond to ORACLE-L_at_fatcity.com
Sent by: root_at_fatcity.com
To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> cc:
I remember, in 96/97, I was working on a Oracle 7 database and none of the
this sample() was available. My task was to select x people out of z number
of people randomly. We hired a temp, who took Dallas/Fort Worth dictionary
(I was working in that area) and counted (yes counted) number of people
whose last names started with A and B and so on.
We put this information into a table and then found out percentage of last
names starting with A compared to the whole list for each letter. This
percentage was used as weightage for each letter when choosing random
samples from a list of people. Then I used this weightage and dbms_random
to
pick the required number of names from our database. It was fun to
implement, but I feel bad for the temp who had to count the names.
So, compared to that, 8i and 9i built-in features rock !! Raj
QOTD: Any clod can have facts, but having an opinion is an art!
(See attached file: ESPN_Disclaimer.txt)
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: Chaim.Katz_at_Completions.Bombardier.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-LReceived on Wed May 22 2002 - 14:00:49 CDT
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
- application/octet-stream attachment: ESPN_Disclaimer.txt