News for hackers. Stuff that matters.
Re:On “order by” optimization by crishoj on Saturday August 01, 2015 @01:06AM (#9986029)
As in SELECT MAX(a), c, d FROM t WHERE b=x?

MySQL will return a random c and d, not necessarily the c and d from the row with maximum a...

Re:On “order by” optimization by acqq on Saturday August 01, 2015 @05:04AM (#9986424)
Goldenkey actually posted

SELECT c,d FROM t WHERE a=(SELECT MAX(a) WHERE b=X from t)

But that post got flagged because he also gave his opinion on the level of understanding the article writer has. The query you posted is actually the one by the article writer.

Re:On “order by” optimization by crishoj on Saturday August 01, 2015 @07:21PM (#9989102)
I see. Thanks.