Received: from tidal.ipinc.com (tidal.ipinc.com [199.245.188.85]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f3QIcO394316; Thu, 26 Apr 2001 14:38:24 -0400 (EDT) (envelope-from jliang@tidal.ipinc.com) Received: from localhost (jliang@localhost) by tidal.ipinc.com (8.9.3/8.9.3) with ESMTP id LAA77905; Thu, 26 Apr 2001 11:38:21 -0700 (PDT) (envelope-from jliang@tidal.ipinc.com) Date: Thu, 26 Apr 2001 11:38:21 -0700 (PDT) From: Jie Liang To: pgsql-admin@postgresql.org cc: sqllist Subject: random rows In-Reply-To: <3AE85E1E.2D39D02D@agliodbs.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200104/152 X-Sequence-Number: 1292 How I can return random N rows from my select stmt? like: e.g. what my selectee is a set of 1000 rows, I want randomly pickup 100 of 1000. thanks. Jie LIANG St. Bernard Software 10350 Science Center Drive Suite 100, San Diego, CA 92121 Office:(858)320-4873 jliang@ipinc.com www.stbernard.com www.ipinc.com