Home » SQL & PL/SQL » SQL & PL/SQL » Oracle Max Function
Oracle Max Function [message #230] Wed, 30 January 2002 07:01 Go to next message
Twan
Messages: 1
Registered: January 2002
Junior Member
Hi,

I have been trying to get the max() function to work in a query of mine. I am trying to find the max date. The max date in the table is 01-14-2002, but the query is returning 12-14-2001. The query is as follows:

SELECT MAX(DATE_COLUMN)
FROM TABLE

Is there another function that I should be using.

Thanks!
Re: Oracle Max Function [message #231 is a reply to message #230] Wed, 30 January 2002 09:24 Go to previous messageGo to next message
sokeh
Messages: 77
Registered: August 2000
Member
that should have worked!
I don't know but try this and let me know if it works for you. It works for me just as your original query worked for me:
select max(date_column) from table
where date_column =(select max(date_column) from table)
Re: Oracle Max Function [message #233 is a reply to message #230] Wed, 30 January 2002 11:29 Go to previous message
Mike
Messages: 417
Registered: September 1998
Senior Member
which is the data type of this column? Is it realy date or is it char/varchar?
Previous Topic: PARTITION BY RANGE.. HELP!!
Next Topic: Re: Programming Problem
Goto Forum:
  


Current Time: Tue Apr 23 16:51:50 CDT 2024