Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

What is the command in bteq to check for session settings ?

0 Answers  


What is meant by a Least Cost Plan?

0 Answers  


What do high confidence, low confidence and no confidence mean in explain plan?

0 Answers  


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

6 Answers   JPMorgan Chase,


Aborted in Phase 1 data Acquistion Incomplete in fastload?

2 Answers  


Mention the procedure via which, we can run Teradata jobs in a UNIX environment.

0 Answers  


which utitility can use for loading the data from non-teradata to teradata ?

5 Answers   Wipro,


what is the difference between filter and router transmissions

2 Answers  


if a error occured in FASTLOAD is the fastload job stops?

1 Answers   CTS, Deloitte,


which join mostly use in realtime?

2 Answers   TCS,


What are the multiload utility limitations?

0 Answers  


What are the available primary index types in teradata.

0 Answers  


Categories