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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you create tables? Exact syntax, and create profiles, users in teradata?

563


What is difference between user and database in teradata?

618


If I wanted to run a TPump job only once per day - basically working on a file that is produced once per day - how would you set up the parameters for that sort of job ?

1901


What are the various indexes in teradata?

572


Highlight all the modes that are present under Confidence Level.

545






Can you fastexport a field, which is primary key by putting equality on that key?

711


Different phases of multiload?

596


Explain the advantages of partitioned primary index in a query?

567


Explain and compare pros and cons of start schemas?

549


There is a column with date in it. If I want to get just month how it can be done? Can I use sub string?

647


What are types of partition primary index (ppi) in teradata?

592


What are default access rights in teradata? What explicit right can be given to a user?

656


Why managing the data is important?

594


Differentiate primary key and partition key?

583


any one answer me how they can analyzing the project using data ware housing?

2032