Re: About sorting rows randomly - Mailing list pgsql-admin

From Ian Barwick
Subject Re: About sorting rows randomly
Date
Msg-id 200303281301.16271.ian@barwick.de
Whole thread Raw
In response to About sorting rows randomly  ("Marc Soler" <msoler@el-valles.com>)
List pgsql-admin
On Friday 28 March 2003 09:32, Marc Soler wrote:
> Hi all
>
> It's possible to return rows randomly sorted?
>
> Something like this:
>
> Select * from table order by random

SELECT foo, bar, random() AS rand FROM my_table ORDER BY rand

Ian Barwick
barwick@gmx.net


pgsql-admin by date:

Previous
From: "Tarry Singh"
Date:
Subject: net start postmaster doesn't start....I've checked the archives already..
Next
From: Robert Treat
Date:
Subject: Re: [pgsql-advocacy] uppercase = lowercase