Hi I have a table data_table .I need to get all the title from the table.The title field (type varchar) contain alphanumeric data like below
title
---------
ab 2007
ab 2017
ba 2018
ba 2017
cd 2017
cd 2016
My desired output is
title
---------
ba 2018
ab 2017
ba 2017
cd 2017
cd 2016
ab 2007
I tried by CAST .But didnt get required result
SELECT title, CAST(title as SIGNED) AS casted_column FROM data_table ORDER BY `title` DESC