Select by priority again

Поиск
Список
Период
Сортировка
От Bernie Huang
Тема Select by priority again
Дата
Msg-id 397C88F1.29395142@ec.gc.ca
обсуждение исходный текст
Ответы Re: Select by priority again  (darcy@druid.net (D'Arcy J.M. Cain))
Список pgsql-sql
Sorry about this, but I don't quite get previous postings regarding
select by prioriry.

I have the same question with my sql. I want to be able to select
cell_phone if there is one in the table; otherwise, I will select
work_phone.

table
------
id, name, address, cell_phone, work_phone,...

and I tried using "case when...end" but nope, it's not gonna work. Help
is needed. Thanks.


- Bernie

Вложения

В списке pgsql-sql по дате отправления:

Предыдущее
От: Kyle
Дата:
Сообщение: TCL updates
Следующее
От: darcy@druid.net (D'Arcy J.M. Cain)
Дата:
Сообщение: Re: Select by priority again