Re: returning row numbers in select

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Randall Skelton <skelton(at)brutus(dot)uwaterloo(dot)ca>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: returning row numbers in select
Date: 2004-03-10 21:50:25
Message-ID: 13151.1078955425@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Randall Skelton <skelton(at)brutus(dot)uwaterloo(dot)ca> writes:
> Correction, I don't want to simply get the nth row, I want all rows
> that are divisible by n. Essentially, the timestamp is at a regular
> interval and I want a way of selecting rows at different sampling
> intervals.

Couldn't you code this as a WHERE test on the timestamp?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Vidyasagara Guntaka 2004-03-10 22:03:44 Functions / Prepared statements
Previous Message Christopher Petrilli 2004-03-10 21:32:11 Re: Question on Opteron performance