Unix Technical Forum

Re: Use of MAX function - right or wrong?

This is a discussion on Re: Use of MAX function - right or wrong? within the Oracle Miscellaneous forums, part of the Oracle Database category; --> "Kay Cee" <cee.1@osu.edu> wrote in message news:bei0q6$hs5$1@charm.magnus.acs.ohio-state.edu... > I'm trying to create an SQL query using a table with ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-07-2008, 08:53 AM
Niall Litchfield
 
Posts: n/a
Default Re: Use of MAX function - right or wrong?

"Kay Cee" <cee.1@osu.edu> wrote in message
news:bei0q6$hs5$1@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
******************************************


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:45 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com