Query execution based on a condition - Mailing list pgsql-sql

From JORGE MALDONADO
Subject Query execution based on a condition
Date
Msg-id CAAY=A79=a3jPonSK9pHvVvS6QAFQdLZdKWAkkQj+bVdPB-GCNw@mail.gmail.com
Whole thread Raw
Responses Re: Query execution based on a condition
Re: Query execution based on a condition
Re: Query execution based on a condition
List pgsql-sql
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?

SELECT fields FROM tblTable WHERE condition
UNION
SELECT fields FROM tblTable WHERE condition
UNION
SELECT fields FROM tblTable WHERE condition
UNION
SELECT fields FROM tblTable WHERE condition

Respectfully,
Jorge Maldonado

pgsql-sql by date:

Previous
From: johnmethew
Date:
Subject: Re: Find Out a Way to Recover Data From Android Phone
Next
From: "David Johnston"
Date:
Subject: Re: Query execution based on a condition