I am wondering how to include the column name as an alias after performing the to_char function. Here is the query:
The "AS DATE" part returns an error. If I take it out, the other column headings get the alias...so I'm wondering how to give the insert_date column an alias in the report.
Thanks.
Code:
select seq_number AS SEQUENCE, ref_code AS PART_NUMBER, to_char(insert_date, 'HH24:MI DD-MON-YY')AS DATE from table where ref_code like '5555555';
The "AS DATE" part returns an error. If I take it out, the other column headings get the alias...so I'm wondering how to give the insert_date column an alias in the report.
Thanks.