Hey all,
im trying to sort a query like this:
SELECT * FROM TABLE WHERE THIS=THAT ORDER BY DATE DESC;
but the date column is a string like 01/01/2007 for example.
so i have tried this:
SELECT * FROM TABLE WHERE THIS=THAT ORDER BY DATE_FORMAT(DATE, '%Y-%m-%d') DESC;
i have tried the above sql statement but it doesnt seem to do anything. Could anyone help me out here. Just to order a query using a string converted to a date within the statement.
Thanks for any help.