Re: select distinct error ?

From: "Mario Weilguni" <mweilguni(at)sime(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Re: select distinct error ?
Date: 2002-07-25 13:14:42
Message-ID: 008401c233dd$3d2b92d0$6f01c00a@icomedias.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> i am just experiencing something weird:
>
> select distinct foo from bar where foobar like 'foobar%';
>
> gives:
>
> foo
> --------
> 090700
> 090701
> 090702
> 090700
> (4 rows)
>

try:
SELECT distinct foo, length(foo) from bar where foobar like 'foobar%';

maybe one has a blank attached?

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message frbn 2002-07-25 13:27:01 Re: Auto DROP SEQUENCE?
Previous Message Tycho Fruru 2002-07-25 13:10:51 Re: using socket to connect flash to the sql database