Hello.
Usually such things are done in several steps using temporary table. create temporary table memp(m int); insert into memp select min(id) from emp; select emp.* from emp,memp where id=m; See: http://dev.mysql.com/doc/mysql/en/example-Maximum-column-group-row.html >Hi, >I need to get all the details of an employee whose salary is the lowest. >I can do like this in Oracle >select * from emp where id = (select min(id) from emp). >Can we have any alternative in MySQL for the above query, as sub queries >are not supported in MySQL 4.0.21 >Regards, >Narasimha -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored by Ensita.NET http://www.ensita.net/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Gleb Paharenko / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.NET <___/ www.mysql.com -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]