> AFAIK if you use an aggregate function on a column and
> group by this column the result is undefined.
> Re-think what you want to query.
For each view there is a row in partner_views (the partner_id and a
timestamp). I want to know how many views each partner has. I think the
query is semantically correct.
Markus Bertheau