pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Patrik Kudo <kudo@partitur.se>
To: Allan Kelly <allan.kelly@buildstore.co.uk>
Cc: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: Re: duplicates
Date: Fri, 07 Apr 2000 13:33:25 +0200
Message-ID: <38EDC785.EA43733@partitur.se> (raw)
References: <38EDB999.EA91E2DB@buildstore.co.uk>

Hi again.

Your query:

> select count(*), user_name from subscribers
>         group by user_name order by count;
> 

would work if you instead wrote:

select count(*), user_name from subscribers
 group by user_name having count(*) > 1

Regards,
Patrik Kudo



view thread (5+ messages)  latest in thread

Message-ID: <38EDC785.EA43733@partitur.se>
Permalink:  ../38EDC785.EA43733@partitur.se/
Also on:    postgresql.org/message-id/38EDC785.EA43733@partitur.se

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: kudo@partitur.se, allan.kelly@buildstore.co.uk
  Subject: Re: duplicates
  In-Reply-To: <38EDC785.EA43733@partitur.se>
  References: <38EDB999.EA91E2DB@buildstore.co.uk> <38EDC785.EA43733@partitur.se>

* 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