pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Michael Hoeller <MichaelHoeller@t-online.de>
Cc: pgsql-sql@postgresql.org
Subject: Re: how to have 2 select creteria on one column?
Date: Sat, 10 Sep 2005 12:57:33 -0500
Message-ID: <20050910175733.GA11142@wolff.to> (raw)
In-Reply-To: <200509101745.50847.MichaelHoeller@t-online.de>
References: <200509101745.50847.MichaelHoeller@t-online.de>

On Sat, Sep 10, 2005 at 17:45:50 +0200,
  Michael Hoeller <MichaelHoeller@t-online.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]'



view thread (4+ messages)

Message-ID: <20050910175733.GA11142@wolff.to>
Permalink:  ../20050910175733.GA11142@wolff.to/
Also on:    postgresql.org/message-id/20050910175733.GA11142@wolff.to

 · 

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: bruno@wolff.to, MichaelHoeller@t-online.de
  Subject: Re: how to have 2 select creteria on one column?
  In-Reply-To: <20050910175733.GA11142@wolff.to>

* 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