Hi

I have a "little" problem with my sql skills.

I have a table  with the following fields:

id (int) |  value (varchar) |  date (date)

I need to show for a given id the value of the oldest date.

Normally, I'd do something like this:

select value from tableName where date in (select max(date) from
tableName where id = 4);

But, it doesn't work with mysql 4.0.  

Any ideas? Does anybody had this problem before?

Thanks in advance and best regards

boricles





-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to