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 -> Re: SELECT COUNT(*) FROM TABLE query problem

Re: SELECT COUNT(*) FROM TABLE query problem

From: barry <bbulsara23_at_hotmail.com>
Date: 12 Oct 2002 02:33:16 -0700
Message-ID: <747f1dec.0210120133.50e148fd@posting.google.com>


or even

select (select count(*) from table1),(select count(*) from table2)  from dual;

>
> select sum(count_table1) , sum(count_table2)
> from ( select count(rowid) , 0
> from tablename1
> union
> select 0 , count(rowid)
> from tablename2 );
Received on Sat Oct 12 2002 - 04:33:16 CDT

Original text of this message

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