Re: Dividing two Count(*)'s ??

From: Bill Schoonmaker <bil.schoonmaker_at_bsis.com>
Date: 1996/08/07
Message-ID: <3208BA87.4D9E_at_bsis.com>#1/1


Fernando Borcel wrote:
>
> How do I perform a query that returns the division between the count of two tables?
>
> That is to say:
>
> Select count(*) / (Select count(*) from Tb2) from Tb2;
>
> Thanks!
>
> Fernando Borcel

You need to qualify each colunm and table... use this method

SELECT COUNT(A.ANYCOLUMN)/COUNT(B.ANYCOLUMN)  FROM TABLE1 A, TABLE2 B Hope this helps

-- 
===========================================================
|Bill Schoonmaker	 email:bill.schoonmaker_at_bsis.com  |
|Oracle DBA		                                  |
|Broadway & Seymour                                       |
===========================================================
|I'm sure the op will send out a message before bringing  |
|production down ... oh sh**                              |
===========================================================
Received on Wed Aug 07 1996 - 00:00:00 CEST

Original text of this message