Re: ALL() question

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: Julien Cigar <jcigar(at)ulb(dot)ac(dot)be>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: ALL() question
Date: 2007-11-14 13:31:16
Message-ID: 20071114133116.GA10440@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Wed, Nov 14, 2007 at 02:39:02PM +0100, Julien Cigar wrote:
> With the following I got a syntax error:
> select specimen_id
> from specimen_test_bits
> where test_bit_id = all(1,2,3,4);

where test_bit_id in (1,2,3,4)
group by specimen_id
having count(distinct test_bit_id) = 4;

depesz

--
quicksil1er: "postgres is excellent, but like any DB it requires a
highly paid DBA. here's my CV!" :)
http://www.depesz.com/ - blog dla ciebie (i moje CV)

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Julien Cigar 2007-11-14 13:39:02 ALL() question
Previous Message Richard Huxton 2007-11-14 13:21:10 Re: ALL() question