Re: query based on row number for psql8.3 - Mailing list pgsql-sql

From Rob Sargent
Subject Re: query based on row number for psql8.3
Date
Msg-id 56F2DFDC.2020408@gmail.com
Whole thread Raw
In response to query based on row number for psql8.3  (Emi <emilu@encs.concordia.ca>)
Responses Re: query based on row number for psql8.3
List pgsql-sql

On 03/23/2016 12:00 PM, Emi wrote:
> Hello,
>
> For psql8.3, is there a simple way to query based on row number please?
>
> For example,
>
> select  case
>                     when row_num=1 THEN    t1.tot_hr
>                     ELSE t1.tot_hr - t1.pre_hr
>           END
> FROM  t1 ;
>
>
>
>
>
I seem to recall other posts from condordia:  Someone needs to take of 
their skates and update postgres!




pgsql-sql by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: query based on row number for psql8.3
Next
From: Stephen Tahmosh
Date:
Subject: Re: query based on row number for psql8.3