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

Home -> Community -> Usenet -> c.d.o.misc -> Re: [Q]HowTo get the count of selected rows

Re: [Q]HowTo get the count of selected rows

From: Randall Smith <rbsmith_at_ramoth.ess.sandia.gov>
Date: 1997/03/14
Message-ID: <3329CA68.126D@ramoth.ess.sandia.gov>#1/1

Paulo Martins da Costa sent me the solution to this.

	Select count(*)
	from (SELECT DISTINCT fld1,fld2 FROM table1);

Thanks Paulo!

Randall Smith

> Is it possible to construct a new SQL statement from an arbitrary
> SELECT statement which will always simply return the number of rows
> which would be selected by the original query?
  Received on Fri Mar 14 1997 - 00:00:00 CST

Original text of this message

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