pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
random query
2+ messages / 1 participants
[nested] [flat]

* random query
@ 1999-10-29 20:31 Oleg Bartunov <oleg@sai.msu.su>
  1999-10-29 20:47 ` Re: [SQL] random query Oleg Bartunov <oleg@sai.msu.su>
  0 siblings, 1 reply; 2+ messages in thread

From: Oleg Bartunov @ 1999-10-29 20:31 UTC (permalink / raw)
  To: pgsql-sql

I need to get random value:

select random(id) from messages where .....
Is't possible with SQL ?

	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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: [SQL] random query
  1999-10-29 20:31 random query Oleg Bartunov <oleg@sai.msu.su>
@ 1999-10-29 20:47 ` Oleg Bartunov <oleg@sai.msu.su>
  0 siblings, 0 replies; 2+ messages in thread

From: Oleg Bartunov @ 1999-10-29 20:47 UTC (permalink / raw)
  To: Oleg Bartunov <oleg@sai.msu.su>; +Cc: pgsql-sql

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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~1999-10-29 20:47 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-10-29 20:31 random query Oleg Bartunov <oleg@sai.msu.su>
1999-10-29 20:47 ` Oleg Bartunov <oleg@sai.msu.su>

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