mysql> desc albums; +-------------+---------+------+-----+------------+----------------+ | Field | Type | Null | Key | Default | Extra | +-------------+---------+------+-----+------------+----------------+ | album_ID | int(11) | | PRI | NULL | auto_increment | | songs | text | | | | | | singers | text | | | | | | from_date | date | | | 0000-00-00 | | | to_date | date | | | 0000-00-00 | | +-------------+---------+------+-----+------------+----------------+ 5 rows in set (0.01 sec)
==> I want to create a select statement to view the latest record according to the "to_date" field SELECT songs, singers FROM albums WHERE ORDER BY to_date DESC LIMIT 1 The ORDER BY statement take in the unsigned field to evaluate the case ... but to_date is a "date" type ... What should I write for that SQL statement ? Son Nguyen __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com --------------------------------------------------------------------- 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