"Christopher Kings-Lynne" <chriskl@familyhealth.com.au> writes:
>> Would you poke into it and see why?
> I can, but I'm not sure what you want me to do -
It shouldn't be that hard to find why you're getting zeroes instead of
expected results. I'd look at those cases first.
regards, tom lane