Operating System - HP-UX
1752808 Members
5983 Online
108789 Solutions
New Discussion юеВ

Re: How to retrieve the row which has a maximum value in a result of GROUP BY ?

 
SOLVED
Go to solution
Pankaj Yadav_1
Frequent Advisor

Re: How to retrieve the row which has a maximum value in a result of GROUP BY ?

But has it got any other significance apart from renaming "object_id" ?
spex
Honored Contributor

Re: How to retrieve the row which has a maximum value in a result of GROUP BY ?

No.
Pankaj Yadav_1
Frequent Advisor

Re: How to retrieve the row which has a maximum value in a result of GROUP BY ?

But my actual query is not working -->

SELECT id,arrivedt,name,startdt,expiredt FROM act_log WHERE id IN(SELECT MAX(id) FROM act_log GROUP BY name) AND keywords REGEXP '".$keywords[0]."' OR keywords REGEXP'".$keywords[1]."' OR keywords REGEXP'".$keywords[2]."' AND csol='$csolnum'
ORDER BY name

Please tell me why its not working ?
Pankaj Yadav_1
Frequent Advisor

Re: How to retrieve the row which has a maximum value in a result of GROUP BY ?

My MySQL server is old version so it doesn't support the complex query above.

UI have upgraded my server now.