Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> SQL statement question

SQL statement question

From: Jimmy <anonymous_at_anonymous.com>
Date: Thu, 07 Sep 2000 22:08:50 -0700
Message-ID: <39B87462.9749954A@anonymous.com>

Hello all,

        THe following SQL statement:

        select count(count(*)) from table_a group by field_a having count(*) > 1

        Is the count(*) in the having part refer to the inner count(*) (or outer count(*)) in the select part? Maybe the answer can be known by testing, however, could anyone explain how Oracle resolve the above query?

Thanks,
Jimmy Received on Fri Sep 08 2000 - 00:08:50 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US