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

What do you mean by caching in teradata?

702


What is the difference between union and union all in teradata?

712


What is the use of stored procedures in teradata?

659


what are the day to day activities of teradata DBA ?

5449


What is meant by a node?

701






What are the different functions included in the server software?

680


What are the various etl tools in the market?

679


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

736


What is meant by a Channel Driver?

725


Explain how spool space is used.

699


Briefly explain each of the following terms related to relational database management system (rdbms) – database, tables, columns, row, primary key and foreign key.

681


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?

738


What is meant by a dispatcher?

656


Can any one explain me the difference between BTEQ and MLOAD,TUMP. All canbe used for same purpose but still differnt methods. why ?

3134


Syntax for case when statement?

694