Subject | RE: [firebird-support] Nested aggregate functions |
---|---|
Author | Rick Debay |
Post date | 2007-02-22T17:19:12Z |
Strange. I'll have to pare down my SQL and post it.
-----Original Message-----
From: firebird-support@yahoogroups.com
[mailto:firebird-support@yahoogroups.com] On Behalf Of Vlad Horsun
Sent: Thursday, February 22, 2007 11:41 AM
To: firebird-support@yahoogroups.com
Subject: Re: [firebird-support] Nested aggregate functions
(SELECT SUM(D2.RDB$RELATION_ID)
FROM RDB$DATABASE D2))
FROM RDB$DATABASE D1
worked fine even in FB 1.5.2
Regards,
Vlad
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Visit http://www.firebirdsql.org and click the Resources item on the
main (top) menu. Try Knowledgebase and FAQ links !
Also search the knowledgebases at http://www.ibphoenix.com
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Yahoo! Groups - Join or create groups, clubs, forums & communities.
Links
Disclaimer: This message (including attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change. RxStrategies, Inc. shall not be liable for the improper or incomplete transmission of the information contained in this communication or for any delay in its receipt or damage to your system. RxStrategies, Inc. does not guarantee that the integrity of this communication has been maintained nor that this communication is free from viruses, interceptions or interference.
-----Original Message-----
From: firebird-support@yahoogroups.com
[mailto:firebird-support@yahoogroups.com] On Behalf Of Vlad Horsun
Sent: Thursday, February 22, 2007 11:41 AM
To: firebird-support@yahoogroups.com
Subject: Re: [firebird-support] Nested aggregate functions
> This statement is not (returns 'Nested aggregate functions are notSELECT SUM(D1.RDB$RELATION_ID -
> allowed'):
>
> SELECT
> SUM(t1.COL1 - (SELECT SUM(t2.COL1) FROM TABLE2 t2 WHERE t2.COL2 =
> ?)) FROM
> TABLE1 t1
>
> In both cases the SELECT on TABLE2 is standalone, and does not require
> any nested aggregation on the original stream.
(SELECT SUM(D2.RDB$RELATION_ID)
FROM RDB$DATABASE D2))
FROM RDB$DATABASE D1
worked fine even in FB 1.5.2
Regards,
Vlad
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Visit http://www.firebirdsql.org and click the Resources item on the
main (top) menu. Try Knowledgebase and FAQ links !
Also search the knowledgebases at http://www.ibphoenix.com
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Yahoo! Groups - Join or create groups, clubs, forums & communities.
Links
Disclaimer: This message (including attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change. RxStrategies, Inc. shall not be liable for the improper or incomplete transmission of the information contained in this communication or for any delay in its receipt or damage to your system. RxStrategies, Inc. does not guarantee that the integrity of this communication has been maintained nor that this communication is free from viruses, interceptions or interference.