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: Counting Records

Re: Counting Records

From: Daniel Morgan <damorgan_at_x.washington.edu>
Date: Sun, 12 Oct 2003 09:47:49 -0700
Message-ID: <1065977280.411094@yasure>


Tom Miskiewicz wrote:

>Hello!
>
>What is the most efficient way of counting records in a table?
>I want to count records in a table that match my query. How do I do that?
>I guess that select count(1) from table_name where fieldA='something' isn't
>the most elegant thing I can do?
>
>
>Thanks
>Tom
>
>

Not elegant ... but efficient.

-- 
Daniel Morgan
http://www.outreach.washington.edu/ext/certificates/oad/oad_crs.asp
http://www.outreach.washington.edu/ext/certificates/aoa/aoa_crs.asp
damorgan_at_x.washington.edu
(replace 'x' with a 'u' to reply)
Received on Sun Oct 12 2003 - 11:47:49 CDT

Original text of this message

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