"Loredana Curugiu" <loredana.curugiu@gmail.com> writes:
> I am trying to say that sum column it is not calculated correctly.
It looks like your counts are high. That would imply that your join clauses
are matching more than one combination of rows. Ie, it's counting some rows
multiple times because there are multiple join matches.
-- Gregory Stark EnterpriseDB http://www.enterprisedb.com