Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Remove of Period '.' from my concatnated string. - forum topic by ikonofamerica

$
0
0

I want to remove periods from the concatenated string. Please help as I tried all options inlcuding Cast, Format etc.
 
My query is
SEL CONCAT(id, rec_num, line_no, dep_no, asp_num, pr_num) as mystr
from table_oemsp
 
I get the output as
mystr
0.0.300.900.0
11.20.123.123.20
etc.
 
I want the output as 003009000 and112012312320 for above examples. Please help.
I used to apply REPLACE function in ORACLE and SQL SERVER but TERDATA doesnt have similar function.

Forums: 

Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>