Selecting top N percent of records.

From: Tim Uckun <timuckun(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Selecting top N percent of records.
Date: 2010-10-17 23:33:54
Message-ID: AANLkTimAcWFDvvzB2JLmFXTjM+_f1Kkj+7B1byxNxhzO@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Is there a way to select the top 10% of the values from a column?

For example the top 10% best selling items where number of sales is a column.

Thanks.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Darren Duncan 2010-10-17 23:53:43 Re: Selecting top N percent of records.
Previous Message Turner, John J 2010-10-17 22:18:01 Re: installing from source in Windows