Friends, I am using MySQL , I am trying to get the earnings. but gives me an error in using alias.
SELECT DISTINCT DATE_FORMAT(date_time, \'%