Forum Moderators: coopster
I'm faced with a unique problem. I need to ORDER the contents of the table based on the filename column and at the same time LIMIT the SELECT results to 50.
SELECT ID FROM TABLE ORDER BY filename ASC LIMIT 0,50
The above statement will ORDER the first 50 records only and not the entire table.
Is it possible to ORDER AND LIMIT in one SQL statement? or what is the alternative solution?
PHP5
MySQL4
TIA