pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Bjarte Aagnes <bjartea@student.sv.uio.no>
To: pgsql-sql@postgresql.org
Subject: Re: MAX(column1),MAX(column2),...
Date: Mon, 15 Apr 2002 12:34:14 -0700
Message-ID: <web-1371121@davinci.ethosmedia.com> (raw)
In-Reply-To: <Pine.SOL.4.33.0204151932060.6621-100000@ulrik.uio.no>

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



view thread (4+ messages)  latest in thread

Message-ID: <web-1371121@davinci.ethosmedia.com>
Permalink:  ../web-1371121@davinci.ethosmedia.com/
Also on:    postgresql.org/message-id/web-1371121@davinci.ethosmedia.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: josh@agliodbs.com, bjartea@student.sv.uio.no
  Subject: Re: MAX(column1),MAX(column2),...
  In-Reply-To: <web-1371121@davinci.ethosmedia.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox