Re: Numbering rows - Mailing list pgsql-general

From Mark Morgan Lloyd
Subject Re: Numbering rows
Date
Msg-id gd6vrm$np1$1@pye-srv-01.telemetry.co.uk
Whole thread Raw
In response to Re: Numbering rows  ("David Rowley" <dgrowley@gmail.com>)
List pgsql-general
David Rowley wrote:

> It's not 100% certain that it will be possible for 8.4, probably though.
>
> select row_number() over (order by employeeid) as nrow,* from employee order
> by employeeid

That makes sense, thanks. So extracting rate-of-change etc. would be a
join on two subselects followed by a bit of maths, that's likely to be a
big incentive for an upgrade when it comes out.

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

pgsql-general by date:

Previous
From: 陈伟楠
Date:
Subject: Re: Opptimizing projections containing unused columns
Next
From: Rafał Ziółkowski
Date:
Subject: PQescapestringConn not found in libpq.dll