This code can be used to select the first ten records from a table in mysql. How can I do the same to display last ten records from a table which has 1000 records. I want to
SELECT name, cost FROM (SELECT name, cost FROM test orderby name desc LIMIT 10) as test ORDER BY name asc;