pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jaime Casanova <systemguards@gmail.com>
To: Foster, Stephen <stephenlfoster@comcast.net>
Cc: Havasvölgyi Ottó <h.otto@freemail.hu>
Cc: pgsql-sql@postgresql.org
Subject: Re: select count of distinct rows
Date: Sat, 10 Dec 2005 20:12:41 -0500
Message-ID: <c2d9e70e0512101712u760f3eb4x3f5b0820233d0530@mail.gmail.com> (raw)
In-Reply-To: <005c01c5fdf0$01b90c10$2101a8c0@cfgod>
References: <005501c5fdef$30be34f0$0200a8c0@OTTO>
	<005c01c5fdf0$01b90c10$2101a8c0@cfgod>

On 12/10/05, Foster, Stephen <stephenlfoster@comcast.net> wrote:
> Well this should work but I tried it and it didn't.
>
> SELECT DISTINCT COUNT(*) FROM mytable;
>

No, it shouldn't work... actually is a non-sense, count will return
just one value so there is nothing to be distinct with...

--
regards,
Jaime Casanova
(DBA: DataBase Aniquilator ;)



view thread (11+ messages)  latest in thread

Message-ID: <c2d9e70e0512101712u760f3eb4x3f5b0820233d0530@mail.gmail.com>
Permalink:  ../c2d9e70e0512101712u760f3eb4x3f5b0820233d0530@mail.gmail.com/
Also on:    postgresql.org/message-id/c2d9e70e0512101712u760f3eb4x3f5b0820233d0530@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: systemguards@gmail.com, stephenlfoster@comcast.net, h.otto@freemail.hu
  Subject: Re: select count of distinct rows
  In-Reply-To: <c2d9e70e0512101712u760f3eb4x3f5b0820233d0530@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