Oracle SQL Formatting -
consider below set of column date in oracle:
column_name na 110000 440000
i want achieve 2 things here
- numbers should in format 99999.90
- in output, word na/na should replaced blank or num field
select case when lower(col_name='na') '' else to_number(col_name,99999.90) end table_name;
Comments
Post a Comment