Query execution based on a condition

Поиск
Список
Период
Сортировка
От JORGE MALDONADO
Тема Query execution based on a condition
Дата
Msg-id CAAY=A79=a3jPonSK9pHvVvS6QAFQdLZdKWAkkQj+bVdPB-GCNw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Query execution based on a condition  ("David Johnston" <polobo@yahoo.com>)
Re: Query execution based on a condition  (msi77 <msi77@yandex.ru>)
Re: Query execution based on a condition  (Adrian Klaver <adrian.klaver@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: johnmethew
Дата:
Сообщение: Re: Find Out a Way to Recover Data From Android Phone
Следующее
От: "David Johnston"
Дата:
Сообщение: Re: Query execution based on a condition