Chairudin Sentosa <chairudin(at)prima(dot)net(dot)id> writes:
> select pin, sum(duration) from tablename where date(start_time)=
> (select date 'today') group by pin;
> pin|sum
> - ---+---
> |
> (1 row)
Definately a bug.
Tom Lane wrote:
> SUM() should never have been applied at all
Yep.
Clark Evans