I Have Name field in a Table
Name
-------------
abcde;fgh;ijk;
abc;def;jklm;no
I want to write a sql to display name field data with out
';'.so i want to replace ; with '' how will write in
Teradata
Answers were Sorted based on User's Feedback
Answer / tdguy
In TD 14.0, i hope OREPLACE function can be used.
SEL OREPLACE(Name,';',NULL) can be used to remove the ';'
character from the string.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / nitin bansal
You can use TRANSLATE function.
select translate(Name,'',';') as Name
from tablename;
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / srav
select case when substr(id,1,3)=';' then ' 'else substr(id,1,3)end from sravya.test4
| Is This Answer Correct ? | 0 Yes | 1 No |
I Have Name field in a Table Name ------------- abcde;fgh;ijk; abc;def;jklm;no I want to write a sql to display name field data with out ';'.so i want to replace ; with '' how will write in Teradata
if a error occured in FASTLOAD is the fastload job stops?
How can we build data marts from FSLDM. is there any standard approach for this?Is FSLDM supports place ?
What are the various indexes in teradata?
What is the multi-insert?
What is the particular designated level at which a LOCK is liable to be applied in Teradata?
what is referential constraints?how do you implement RI in teradata?
can i call router is a passive transformation
what is differences between Fastload and Multiload as per DBA aspect ?
Explain and compare pros and cons of start schemas?
Does any body has TERADATA Certification Dumps, if any body is having please let me know to summee4you@gmail.o, it is very Very URGENT to me
If the script is aborted. why it is aborted and how can you identify ?