Page 1 of 1

MAX and ORDER BY

Posted: Fri Jun 27, 2003 3:59 pm
by bill.marel
If a SQL command has both MAX and ORDER BY, which is evaluated first?

A. Take the first MAX hits then apply the ORDER BY ?
B. Take all the hits, apply the ORDER BY, then return the first MAX hits ?

MAX and ORDER BY

Posted: Fri Jun 27, 2003 4:47 pm
by mark
B