From: Scott Marlowe <scott.marlowe@gmail.com>
To: Maximilian Tyrtania <maximilian.tyrtania@onlinehome.de>
Cc: pgsql-sql@postgresql.org
Subject: Re: Distinct oddity
Date: Thu, 7 May 2009 12:54:09 -0600
Message-ID: <dcc563d10905071154j613847edqc5cab8c8af68d496@mail.gmail.com> (raw)
In-Reply-To: <C62866B5.35DA3%maximilian.tyrtania@onlinehome.de>
References: <C62866B5.35DA3%maximilian.tyrtania@onlinehome.de>
On Thu, May 7, 2009 at 2:21 AM, Maximilian Tyrtania
<maximilian.tyrtania@onlinehome.de> wrote:
> Hi there,
>
> does this look right?
>
> FAKDB=# select count(distinct(f.land)) from firmen f where
> f.typlist='Redaktion';
> count
> -------
> 1975
> (1 row)
>
> FAKDB=# select count(distinct(f.land||'1')) from firmen f where
> f.typlist='Redaktion';
> count
> -------
> 4944
> (1 row)
Yeah, that does seem odd. Could it be something like nulls in your
data set? just guessing really. If you could make a small test case
that shows it happening and allows others to reproduce it you're
likely to get more bites.
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: scott.marlowe@gmail.com, maximilian.tyrtania@onlinehome.de
Subject: Re: Distinct oddity
In-Reply-To: <dcc563d10905071154j613847edqc5cab8c8af68d496@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