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 |
What is the command in bteq to check for session settings ?
What is meant by a Least Cost Plan?
What do high confidence, low confidence and no confidence mean in explain plan?
Hi Friends I have a sql question, We have the source data as below. 101 address1, address2, address3 and the output shoulb like below 101 address1 101 address2 101 address3 Required a SQL query for this output. Please let me know if you have any sql query for this. Thanks in advance. Hari M
Aborted in Phase 1 data Acquistion Incomplete in fastload?
Mention the procedure via which, we can run Teradata jobs in a UNIX environment.
which utitility can use for loading the data from non-teradata to teradata ?
what is the difference between filter and router transmissions
if a error occured in FASTLOAD is the fastload job stops?
which join mostly use in realtime?
What are the multiload utility limitations?
What are the available primary index types in teradata.