1
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 dates returned to be converted to character in this pattern 'DD/MM/YYY'
- If I make the conversion in a single query, the ordination classifies all the numbers of the days, after the month, and then after the year, and in case I need to return as if it were the same date, the most current days returning first.
"ORA-01791: not a SELECT expression"
– Rafael Brito
What version of your oracle?
– George Wurthmann
I edited the answer. Take a look.
– George Wurthmann
Success :) It worked. Thank you very much.
– Rafael Brito