Re: math problem

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: math problem
Дата
Msg-id 20020725152208.Q52747-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на math problem  (Vincent Stoessel <vincent@xaymaca.com>)
Список pgsql-general
On Thu, 25 Jul 2002, Vincent Stoessel wrote:

> cola colb total
>
>       3
> 1
> 4
>
> etc.
>
>
>
> Any work around for this, do I have to use a
> Pg language? I guess I could write a script in perl
> to take of this for me but I would like to tap
> the brains here to see it can al be done in the
> SQL.

If you're trying to get 3, 1, and 4 respectively,
you might want:
coalesce(cola,0)+coalesce(colb,0)


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

Предыдущее
От: Vincent Stoessel
Дата:
Сообщение: math problem
Следующее
От: "Roderick A. Anderson"
Дата:
Сообщение: Re: math problem