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



I Have Name field in a Table Name ------------- abcde;fgh;ijk; abc;def;jklm;no I want to wr..

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

I Have Name field in a Table Name ------------- abcde;fgh;ijk; abc;def;jklm;no I want to wr..

Answer / nitin bansal

You can use TRANSLATE function.

select translate(Name,'',';') as Name
from tablename;

Is This Answer Correct ?    1 Yes 1 No

I Have Name field in a Table Name ------------- abcde;fgh;ijk; abc;def;jklm;no I want to wr..

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

Post New Answer

More Teradata Interview Questions

How can we pass Variable in Bteq with out using shell script Is it possible or not If possible let me know how can we pass varaibale

1 Answers  


Difference between star and snowflake schemas?

0 Answers  


Where is teradata rdbms used?

0 Answers  


What is teradata?

0 Answers  


Discuss the advantages of using partitioned primary index in a query?

0 Answers  






Explain teradata architecture in detail with a diagram.

0 Answers  


List out some of the primary characteristics of teradata.

0 Answers  


Different phases of multiload?

0 Answers  


Explain fastload in teradata?

0 Answers  


Explain the term 'columns' related to relational database management system?

0 Answers  


how to delete duplicate records in multi set table without using any tables

2 Answers   Accenture, Nest, South Nests Software Solution, Spiro Solutions,


can i call router is a passive transformation

2 Answers  


Categories