pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oleg Bartunov <oleg@sai.msu.su>
To: Oleg Bartunov <oleg@sai.msu.su>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] random query
Date: Sat, 30 Oct 1999 00:47:49 +0400 (MSD)
Message-ID: <Pine.GSO.3.96.SK.991030004510.21751o-100000@ra> (raw)
In-Reply-To: <Pine.GSO.3.96.SK.991030002713.21751n-100000@ra>

On Sat, 30 Oct 1999, Oleg Bartunov wrote:

> Date: Sat, 30 Oct 1999 00:31:27 +0400 (MSD)
> From: Oleg Bartunov <oleg@sai.msu.su>
> To: pgsql-sql@postgreSQL.org
> Subject: [SQL] random query
> 
> I need to get random value:
> 
> select random(id) from messages where .....
> Is't possible with SQL ?

Just to be correct - I need only one random row
from matched rows. I've seen random.sql in 
regression test but didn't figured out yet how
to use oidrand for my purpose.


> 
> 	Oleg
> 
> _____________________________________________________________
> Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
> Sternberg Astronomical Institute, Moscow University (Russia)
> Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
> phone: +007(095)939-16-83, +007(095)939-23-83
> 
> 
> ************
> 

_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83




view thread (2+ messages)

Message-ID: <Pine.GSO.3.96.SK.991030004510.21751o-100000@ra>
Permalink:  ../Pine.GSO.3.96.SK.991030004510.21751o-100000@ra/
Also on:    postgresql.org/message-id/Pine.GSO.3.96.SK.991030004510.21751o-100000@ra

 · 

reply

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: oleg@sai.msu.su
  Subject: Re: [SQL] random query
  In-Reply-To: <Pine.GSO.3.96.SK.991030004510.21751o-100000@ra>
  References: <Pine.GSO.3.96.SK.991030002713.21751n-100000@ra> <Pine.GSO.3.96.SK.991030004510.21751o-100000@ra>

* 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