sum(bool)?

Поиск
Список
Период
Сортировка
От Olaf Marc Zanger
Тема sum(bool)?
Дата
Msg-id 01022316220800.01026@sino
обсуждение исходный текст
Ответы Re: sum(bool)?  ("Oliver Elphick" <olly@lfix.co.uk>)
Список pgsql-sql
hi there,

i want to add up the "true" values of a comparison like

sum(a>b)

it just doesn't work like this

any workaround?

it is postgresql 7.0 under linux

thanks

olaf



-- 
soli-con Engineering Zanger, Dipl.-Ing. (FH) Olaf Marc Zanger
Lorrainestrasse 23, 3013 Bern / Switzerland
fon:+41-31-332 9782, mob:+41-76-572 9782
mailto:olaf.zanger@soli-con.com, http://www.soli-con.com



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

Предыдущее
От: Olaf Marc Zanger
Дата:
Сообщение: a tricky one
Следующее
От: Tod McQuillin
Дата:
Сообщение: Re: syntax prob