| From: | "Jaime Casanova" <systemguards(at)gmail(dot)com> |
|---|---|
| To: | Oswaldo Hernández <listas(at)soft-com(dot)es> |
| Cc: | pgsql-es-ayuda(at)postgresql(dot)org |
| Subject: | Re: Problema SQL |
| Date: | 2007-02-17 06:42:39 |
| Message-ID: | c2d9e70e0702162242t57fea95bkcd731a185efb47ea@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-es-ayuda |
On 2/16/07, Oswaldo Hernández <listas(at)soft-com(dot)es> wrote:
> > select valor
> > from valorescomunes
> > group by valor
> > having count(valor) = (select count(distinct clave) from valorescomunes);
> >
>
>
> Por cierto, se me ocurre que si en la tabla tienes valores nulos posiblemente falle, tenlo en cuenta
>
bueno, como null <> null nunca saldra null como valor comun
--
Atentamente,
Jaime Casanova
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots.
So far, the universe is winning."
Richard Cook
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Gabriel Colina | 2007-02-17 11:00:13 | Re: postgreSQL |
| Previous Message | Jaime Casanova | 2007-02-17 06:31:38 | Re: Fw: Sobre 64 bits |