Re: Where clause

Поиск
Список
Период
Сортировка
От Michael Landin Hostbaek
Тема Re: Where clause
Дата
Msg-id 20070626094453.GH67974@mich2.itxmarket.com
обсуждение исходный текст
Ответ на Re: Where clause  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Ответы Re: Where clause  (Achilleas Mantzios <achill@matrix.gatewaynet.com>)
Re: Where clause  (Richard Huxton <dev@archonet.com>)
Список pgsql-sql
A. Kretschmer (andreas.kretschmer) writes:
> *untested*
> 
> select cid, sum(case when click = true then 1 else 0 end), sum(case when
> view = true then 1 else 0 end) from ...
> 

Thanks, but I need the DISTINCT contactid - I don't want the same
contactid counted twice.

Mike


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

Предыдущее
От: "A. Kretschmer"
Дата:
Сообщение: Re: Where clause
Следующее
От: Achilleas Mantzios
Дата:
Сообщение: Re: Where clause