From: Darren Greer <dgreer@websightsolutions.com>
To: pgsql-sql@postgreSQL.org
Subject: More fun with random selects
Date: Wed, 30 Jun 1999 07:27:02 -0500
Message-ID: <9906300730281H.06064@george> (raw)
Hello all.
I have a question that has to do with getting a random number of rows from a
table. I am already using oidrand(oid, #), to get a random percentage of rows
from a table. What I want to do now is get a rand # of rows, where I pick the
number.
For example, lets say I want a random 125 rows from an existing table. Is
there an easy way I can do that where I actually am getting a decent sample
from the table?
As always, any help is appreciated.
Darren
--
Darren Greer
System Administrator -
Applications Development Manager
Websight Solutions Inc.
Phone: (414) 790-9327 | Fax: (414) 790-5952
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: dgreer@websightsolutions.com
Subject: Re: More fun with random selects
In-Reply-To: <9906300730281H.06064@george>
References: <9906300730281H.06064@george>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox