Re: how to have 2 select creteria on one column?

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Michael Hoeller <MichaelHoeller(at)t-online(dot)de>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: how to have 2 select creteria on one column?
Date: 2005-09-10 17:57:33
Message-ID: 20050910175733.GA11142@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Sat, Sep 10, 2005 at 17:45:50 +0200,
Michael Hoeller <MichaelHoeller(at)t-online(dot)de> wrote:
> Hello,
>
> I would like to select every row which has got in the column CODE a "k"
> but I want to exclude every "kV" -- may be it is due to the fact that
> it is Saturday and I work too long I don't get it.. I tried a
> subselect, union but I struggle with the two select creteria on one
> column.

Your description isn't as precise as would be nice. But from what I can figure
you want:
code ~ '^k[^V]'

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Bruno Wolff III 2005-09-10 18:03:52 Re: how to update with a join?
Previous Message MichaelHoeller 2005-09-10 16:56:10 Re: how to update with a join?