pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jaime Casanova <jcasanov@systemguards.com.ec>
To: Andreas <maps.on@gmx.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: Howto get a group_number like row_number for groups
Date: Thu, 8 Apr 2010 22:41:10 -0500
Message-ID: <m2n3073cc9b1004082041v38841af0w960472964dd0e388@mail.gmail.com> (raw)
In-Reply-To: <4BBE33B0.1050408@gmx.net>
References: <4BBE33B0.1050408@gmx.net>

On Thu, Apr 8, 2010 at 2:51 PM, Andreas <maps.on@gmx.net> wrote:
> or rank()  over  (order by  object,   ts)  %  2

use dense_rank() instead

-- 
Atentamente,
Jaime Casanova
Soporte y capacitación de PostgreSQL
Asesoría y desarrollo de sistemas
Guayaquil - Ecuador
Cel. +59387171157



view thread (3+ messages)  latest in thread

Message-ID: <m2n3073cc9b1004082041v38841af0w960472964dd0e388@mail.gmail.com>
Permalink:  ../m2n3073cc9b1004082041v38841af0w960472964dd0e388@mail.gmail.com/
Also on:    postgresql.org/message-id/m2n3073cc9b1004082041v38841af0w960472964dd0e388@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: jcasanov@systemguards.com.ec, maps.on@gmx.net
  Subject: Re: Howto get a group_number like row_number for groups
  In-Reply-To: <m2n3073cc9b1004082041v38841af0w960472964dd0e388@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox