TheBuzzer
HACK THE WORLD!
- Joined
- Aug 15, 2005
- Messages
- 13,005
If i do
SELECT * FROM (SELECT * FROM `styles_domestic_specials` ORDER BY `endingdate` DESC) AS T1 GROUP BY `style`
does it do the same as
SELECT * FROM `styles_domestic_specials` GROUP BY `style` ORDER BY `endingdate` DESC
It seems like group by got to be before order by. So I am wondering does this make any difference?
SELECT * FROM (SELECT * FROM `styles_domestic_specials` ORDER BY `endingdate` DESC) AS T1 GROUP BY `style`
does it do the same as
SELECT * FROM `styles_domestic_specials` GROUP BY `style` ORDER BY `endingdate` DESC
It seems like group by got to be before order by. So I am wondering does this make any difference?