how can I convert int like ‘1984’ to date and display it as century SQL Oracle?
Advertisement
Answer
If the column is a date/time or timestamp:
select to_char(columnname, 'CC') as century from tablename;
how can I convert int like ‘1984’ to date and display it as century SQL Oracle?
If the column is a date/time or timestamp:
select to_char(columnname, 'CC') as century from tablename;