Re: Is this query possible in PostgreSQL ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Ben-Nes Michael <miki(at)canaan(dot)co(dot)il>, pgsql-general(at)postgresql(dot)org
Subject: Re: Is this query possible in PostgreSQL ?
Date: 2002-07-29 06:17:26
Message-ID: 14547.1027923446@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
>> SELECT * from some_table WHERE MOD(some_row, :n) = 0;

> So this allows you to get every Xth result, like every 3rd row. Wow,
> that is interesting.

s/interesting/useless/. Every third row in what ordering? And don't
tell me about ORDER BY, because WHERE conditions are processed before
ORDER BY.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-07-29 06:18:48 Re: [GENERAL] Stats Collector
Previous Message Alex Cheung Tin Ka 2002-07-29 04:16:14 type conversion between text and timestamp