Re: all the table values equal

Поиск
Список
Период
Сортировка
От Michele Petrazzo - Unipex
Тема Re: all the table values equal
Дата
Msg-id 4C938D09.3050105@unipex.it
обсуждение исходный текст
Ответ на Re: all the table values equal  ("Oliveiros d'Azevedo Cristina" <oliveiros.cristina@marktest.pt>)
Список pgsql-sql
Oliveiros d'Azevedo Cristina ha scritto:
> Howdy , Michele,
>
> Give this a try
>
> SELECT id_user FROM t_your_table WHERE datetime BETWEEN A -- plug
> here beginning of interval AND B -- and end here GROUP BY id_user
> HAVING COUNT(*) = -SUM(value)
>
> Then tell me if it gives you what you want


Thanks,
it works, but... it's really a trickle that exploits the value -1 if I
understand how its work.
If there is another value where look for? Example 13?

Thanks


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

Предыдущее
От: "Oliveiros d'Azevedo Cristina"
Дата:
Сообщение: Re: all the table values equal
Следующее
От: Jann Röder
Дата:
Сообщение: Re: Table returning functions