Re: ALL() question

From: Richard Huxton <dev(at)archonet(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:21:10
Message-ID: 473AF646.2010307@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Julien Cigar wrote:
> I finally found a solution:
>
> SELECT specimen_id
> FROM specimen_test_bits
> GROUP BY specimen_id
> HAVING array_accum(test_bit_id) = '{2,3,4}';
>
> .. but I don't think it's very "clean" ..

The key question is whether you can rely on getting (2,3,4) or whether
you might get (4,3,2) or some other ordering.

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message hubert depesz lubaczewski 2007-11-14 13:31:16 Re: ALL() question
Previous Message Richard Huxton 2007-11-14 13:20:14 Re: ALL() question