pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: James Carrier <james.carrier@bulletonline.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: SQL Help - multi values
Date: Sun, 10 Feb 2002 10:04:39 -0600
Message-ID: <20020210160439.GA31247@wolff.to> (raw)
In-Reply-To: <5.1.0.14.2.20020210063242.00b18da0@bunce.bitecomm.co.uk>
References: <5.1.0.14.2.20020210063242.00b18da0@bunce.bitecomm.co.uk>

On Sun, Feb 10, 2002 at 06:34:52AM +0000,
  James Carrier <james.carrier@bulletonline.com> wrote:
> 
> But in the example above this would return 3 entries, which I don't want,
> and I can't select a particular dataid which satisfies more than category,
> e.g. has categories 4 and 7 (i.e. for the example above the LIKE statement
> would be: WHERE category LIKE '%|4|%' AND LIKE '%|7|%').

It is possible to write queries that return a list of dataids that
having an enrty for more than one specific category.

However, it seems like you probably want to encode the category list
in a bit string based on how you have indicated you want to use it.



view thread (7+ messages)  latest in thread

Message-ID: <20020210160439.GA31247@wolff.to>
Permalink:  ../20020210160439.GA31247@wolff.to/
Also on:    postgresql.org/message-id/20020210160439.GA31247@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, james.carrier@bulletonline.com
  Subject: Re: SQL Help - multi values
  In-Reply-To: <20020210160439.GA31247@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