MySQL Forums
Forum List  »  Federated Storage Engine

comparison of date type column
Posted by: rei
Date: July 28, 2006 01:14AM

is there anyway i can compare 3 or more date type column?

let's say i have
------------------------------------------------
date1 | date2 | date3
------------------------------------------------
2006-06-01 | 2006-06-15 | 2006-09-19
------------------------------------------------

can i just get the earliest date by command line?
select XXXXX(date1,date2,date3) <--returns '2006-06-01 '

or perhaps get the lastest date by command line?
select YYYYY(date1,date2,date3) <--returns '2006-09-19 '

Options: ReplyQuote


Subject
Views
Written By
Posted
comparison of date type column
4890
rei
July 28, 2006 01:14AM
3012
rei
July 28, 2006 01:15AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.