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
Re: Query execution based on a condition
Re: Query execution based on a condition
Список 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 по дате отправления: