need some help with a SELECT

From: Tony Grant <tony(at)animaproductions(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: need some help with a SELECT
Date: 2001-05-21 14:05:41
Message-ID: 990453941.19360.11.camel@tonux
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Monday...

I can't get my brain around this one.

Get the top three replies from a quizz.

I want to select from a table all records which have a value of
1.000000, 2.000000 and 3.000000. Then I want to class the records by the
column which has the most 1 followed by the most 2...

Yes I was thrown out of math class in high school... All these dark
secrets which are coming out now...

I don't want code I want the logic so that I can try to write the code
for myself. TIA

Cheers

Tony Grant

--
RedHat Linux on Sony Vaio C1XD/S
http://www.animaproductions.com/linux2.html
Macromedia UltraDev with PostgreSQL
http://www.animaproductions.com/ultra.html

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dennis Muhlestein 2001-05-21 14:29:05 Re: pgaccess - no "numeric" data type?
Previous Message Zak McGregor 2001-05-21 14:04:25 Re: Queries across multiple databases (was: SELECT from a table in another database).