Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Use of MAX function - right or wrong?

Re: Use of MAX function - right or wrong?

From: Niall Litchfield <niall.litchfield_at_dial.pipex.com>
Date: Thu, 10 Jul 2003 22:08:58 +0100
Message-ID: <3f0dd563$0$15039$cc9e4d1f@news.dial.pipex.com>


"Kay Cee" <cee.1_at_osu.edu> wrote in message news:bei0q6$hs5$1_at_charm.magnus.acs.ohio-state.edu...
> I'm trying to create an SQL query using a table with two fields. There
are
> multiple date rows in column B associated with each row in column A. I
was
> looking at using the MAX function to retrieve the most current date value
> for each data row in column A, but the MAX function only retrieves a
single
> data row with the most recent date, irrespective of the values in column
A.
> Is there a way around this?

look at how the GROUP BY clause works, it should help you out.

BTW didn't you used to have a sunshine band?

-- 
Niall Litchfield
Oracle DBA
Audit Commission UK
*****************************************
Please include version and platform
and SQL where applicable
It makes life easier and increases the
likelihood of a good answer
******************************************
Received on Thu Jul 10 2003 - 16:08:58 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US