X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 6D025D1B8D0 for ; Tue, 23 Sep 2003 10:01:51 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 76798-08 for ; Tue, 23 Sep 2003 07:01:29 -0300 (ADT) Received: from news.hub.org (unknown [64.117.224.194]) by svr1.postgresql.org (Postfix) with ESMTP id 052C7D1B4F1 for ; Tue, 23 Sep 2003 07:01:27 -0300 (ADT) Received: from news.hub.org (host-64-117-224-194.altec1.com [64.117.224.194] (may be forged)) by news.hub.org (8.12.9/8.12.9) with ESMTP id h8NA1HhK084454 for ; Tue, 23 Sep 2003 10:01:21 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id h8N9bg1J081012 for pgsql-sql@postgresql.org; Tue, 23 Sep 2003 09:37:42 GMT From: anssiman@jippii.fi (-anssi) X-Newsgroups: comp.databases.postgresql.sql Subject: Useful SQL-statement? Date: 23 Sep 2003 02:34:26 -0700 Organization: http://groups.google.com/ Lines: 18 Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: groups-abuse@google.com To: pgsql-sql@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/285 X-Sequence-Number: 15263 Hello! Is there any standard SQL-statement, which produce resultset containing best plyers of the each team? player |team|points ------------------- paul col 10 peter col 12 steve det 12 sergei det 8 jere dal 4 Resultset: peter steve jere