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

Home -> Community -> Usenet -> c.d.o.tools -> How to get the 'top ten' from a SELECT count(*)

How to get the 'top ten' from a SELECT count(*)

From: Carsten Jacobs <carsten.jacobs_at_tool42.com>
Date: 2000/04/25
Message-ID: <3905950F.ECF8601C@tool42.com>#1/1

Hello!

I want to make something like a top ten list. Does anybody hava a smart idea to get only the first ten rows of a select like

SELECT count(*) amount, country
FROM customer
GROUP by customer
ORDER by amount

Thanks for any help

Carsten Received on Tue Apr 25 2000 - 00:00:00 CDT

Original text of this message

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