Hi All,
I am trying to write a query that will select all fields from a table (without puting each field in the select statement) and add an addition field that converts the the date from the database format to a date format. I have tried the following, but get a "keyword not found where expected" error.
I have test the "TO_DATE" code and it works fine.
Thanks,
Tim
I am trying to write a query that will select all fields from a table (without puting each field in the select statement) and add an addition field that converts the the date from the database format to a date format. I have tried the following, but get a "keyword not found where expected" error.
Code:
SELECT *, TO_DATE(lpad(term_date - 1000000, 6, 0), 'yymmdd') "Term Date"
FROM calldetail
WHERE term_date = 1060420
I have test the "TO_DATE" code and it works fine.
Thanks,
Tim