Hi,I am getting the message 'ERROR: aggregate function calls cannot be nested"when using a select from an inner select.
The outer select had a group by clause but the inner one is a straight joinbetween a few tables.
What exactly does this message mean?
Jonathan Blitz
Jonathan Blitz <jblitz@013.net> writes:
It means you can't write something like avg(sum(x)).
regards, tom lane