my $sql = "select id, account_number, CONVERT(VARCHAR(10),date,101) as date from my_table where id <> '' order by date desc";