MySQL Forums
Forum List  »  Newbie

Re: Select Top
Posted by: Felix Geerinckx
Date: April 01, 2005 07:59AM

Bart Schelkens wrote:

> SELECT TOP 10 COUNT(Referer) AS Aantal_bezoekers, referer
> FROM Log
> WHERE Referer <> '/index.asp'
> GROUP BY Referer

SELECT COUNT(Referer) AS Aantal_bezoekers, referer
FROM Log
WHERE Referer <> '/index.asp'
GROUP BY referer
ORDER BY Aantal_bezoekers DESC
LIMIT 0, 10

--
felix

Options: ReplyQuote


Subject
Written By
Posted
April 01, 2005 03:49AM
Re: Select Top
April 01, 2005 07:59AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.