Re: Query

From: Abel Camarillo <acamari(at)the00z(dot)org>
To: marco santillan <marco_equis(at)yahoo(dot)es>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Query
Date: 2009-05-25 06:04:36
Message-ID: 20090525060436.GC22717@maetel.00z
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, May 25, 2009 at 02:56:10AM +0000, marco santillan wrote:
>
> Hola a todos:
>
> Tengo la siguiente inquietud. En una consulta com la siguiente:
>
> select campo1,
> campo2,
> campo1 - campo2 as campo_virtual,
> campo3,
> case when campo_virtual = 1 then 5 else 0 end as segundo_campo_virtual
> from tabla;
>
> Esto lo puedo hacer en access sin ningun problema, pero en postgresql no reconoce el campo_virtual.
>
> ¿Es que postgresql no soporta esta consulta o existe algun otro metodo para lograr esta tecnica?
>
>
> Nota: (campo1 - campo2) en realidad es una compleja consulta que se usa varias veces lineas abajo.
>
> Marco.-
>
>
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general

This is an english list, you will need to ask in english or "nobody" is
going to answer.

--
DISCLAIMER: http://goldmark.org/jeff/stupid-disclaimers/
This message will self-destruct in 3 seconds.

In response to

  • Query at 2009-05-25 02:56:10 from marco santillan

Browse pgsql-general by date

  From Date Subject
Next Message Scara Maccai 2009-05-25 07:10:21 using explain to get query expected time
Previous Message Johan Nel 2009-05-25 05:29:21 Re: Question on Foreign Key Structure/Design