Subject | RE: [firebird-support] Re: SubSelect Question |
---|---|
Author | Alan McDonald |
Post date | 2003-11-11T01:43:11Z |
> I just ran this query:Use RDB$DATABASE instead of ABNTRADEDATA as the last reference - there is
>
> SELECT (select avg(volume) from ABNTRADEDATA where volume >0), (select
> avg(volume) from abntradedata where volume <0) AVG_VOLUME from
> ABNTRADEDATA;
>
> and it took me 458seconds to execute? what's wrong here?
>
only one record in RDB$DATABASE
SELECT (select avg(volume) from ABNTRADEDATA where volume >0), (select
avg(volume) from abntradedata where volume <0) AVG_VOLUME from
RDB$DATABASE;
Alan