Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by postgresql.org (Postfix) with ESMTP id 08F5E4799BA for ; Mon, 15 Apr 2002 15:34:15 -0400 (EDT) Received: from [209.122.114.82] (account ) by davinci.ethosmedia.com (CommuniGate Pro WebUser 3.5.9) with HTTP id 1371121; Mon, 15 Apr 2002 12:34:14 -0700 From: "Josh Berkus" Subject: Re: MAX(column1),MAX(column2),... To: Bjarte Aagnes , X-Mailer: CommuniGate Pro Web Mailer v.3.5.9 Date: Mon, 15 Apr 2002 12:34:14 -0700 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Archive-Number: 200204/193 X-Sequence-Number: 7457 Bjarte, > How do I list all column names and maximum values for each column in > a table. > I can list the column names, but can't see how to get the maximum of > each > column without typing max(name) for every column. That is exactly what you have to do. I do not understand the problem. If you are looking for some way to save yourself typing the column names, it doesn't exist. -Josh Berkus