Postgresql and Top N Analysis? - Mailing list pgsql-sql

From Katka a Daniel Dunajsky
Subject Postgresql and Top N Analysis?
Date
Msg-id Law12-F82jsKcWYSQxg00019507@hotmail.com
Whole thread Raw
Responses Re: Postgresql and Top N Analysis?
List pgsql-sql
Hello all,

Can anyone give me an hit how to do Top 'N' Analysis in postgresql (if it is 
possible)?
I see that postgresql does not have an pseudocolumn rownum, therefore I 
can't use query like this:

SELECT   *
FROM     (SELECT DISTINCT session_type_id FROM user_sessions ORDER BY 
session_type_id) as dummy
GROUP BY dummy;

Thank you for your time.

Daniel

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



pgsql-sql by date:

Previous
From: Randall Lucas
Date:
Subject: Testing castability of text to numeric
Next
From: Larry Rosenman
Date:
Subject: Re: Postgresql and Top N Analysis?