From: Adrian Klaver <adrian.klaver@gmail.com>
To: JORGE MALDONADO <jorgemal1960@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Query execution based on a condition
Date: Sat, 29 Dec 2012 11:46:39 -0800
Message-ID: <50DF489F.4030109@gmail.com> (raw)
In-Reply-To: <CAAY=A79=a3jPonSK9pHvVvS6QAFQdLZdKWAkkQj+bVdPB-GCNw@mail.gmail.com>
References: <CAAY=A79=a3jPonSK9pHvVvS6QAFQdLZdKWAkkQj+bVdPB-GCNw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>
On 12/29/2012 11:05 AM, JORGE MALDONADO wrote:
> I have a query similar to the one shown below but, depending on the
> value of a field, only the first SELECT statement shoud execute and the
> other 3 should be ignored. Is there a way to achieve this situation?
Probably so, but is hard to be specific without more information. In a
particular the condition/field being tested and values being tested for.
> Respectfully,
> Jorge Maldonado
--
Adrian Klaver
adrian.klaver@gmail.com
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
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: adrian.klaver@gmail.com, jorgemal1960@gmail.com
Subject: Re: Query execution based on a condition
In-Reply-To: <50DF489F.4030109@gmail.com>
* 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