Hello,

A real SQL-query works well
SELECT MAX(date_value) AS date_value FROM dates WHERE version_id='2'

But the problem is, that I can't get a value of another column, i.e.

the row in a table consists of three columns - id, date_value and
version_id

The task - to get a value of id column where date_value is the biggest
while version_id is preset

Thank you





---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to