Re: Newbie Q - maximum value of a column

From: Imtiaz Ahmed <imtiaz_at_qatar.net.qa>
Date: 1996/10/20
Message-ID: <01bbbdfc$438ad1c0$be2185c2_at_r2d2>#1/1


select key
from table
where rownum <=1
order by key desc ;

hope this helps you.

Imtiaz Ahmed
E-mail imtiaz_at_qatar.net.qa

Kevin Loney <"75663,327"_at_compuserve.com> wrote in article <3267D73C.2ED_at_compuserve.com>...
> Ku Kam Ming wrote:
> >
> > A column named 'key NUMBER(6)' is used as primary key. I would like to
> > know the simplest way to get the maximum value of the column 'key'.
> >
> >
>
> select MAX(key_col)
> from table;
>
  Received on Sun Oct 20 1996 - 00:00:00 CEST

Original text of this message