I have a sub-query returning dates this way:
SELECT DISTINCT DT_EMISSAO_NF FROM DANFE ORDER BY DT_EMISSAO_NF DESC
And, starting from this query, I need all the returned dates to be converted into a character in this pattern 'DD / MM / YYY'
- If I do the conversion in a single query, sorting sorts all the number of days, after the month, and then after the year, and in case I need to return it as if it were the date itself, the most current days returning first.