Oracle SQL Formatting -


consider below set of column date in oracle:

column_name na 110000 440000 

i want achieve 2 things here

  1. numbers should in format 99999.90
  2. 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

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -