Postgresql and Top N Analysis?

From: "Katka a Daniel Dunajsky" <daniel_katka(at)hotmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Postgresql and Top N Analysis?
Date: 2003-05-13 21:32:57
Message-ID: Law12-F82jsKcWYSQxg00019507@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Larry Rosenman 2003-05-13 21:36:07 Re: Postgresql and Top N Analysis?
Previous Message Issa 2003-05-13 21:07:08 Inquiry From Form [pgsql]