1
select substring(c from 1 for l%3)||'.'||substring(c from l%3+1 for 1)||substring(' kMGTPE' from l/3+1 for 1)from(select column1 as c,length(column1)as l from(values('12345'))s)s;