Frnds....

i have one doubt

we have the num like this +913757575......i want to remove
91 and i want lo load remaining data to the target table..

whinch function we can use in teradata?????


Plz let me know..
thanks in advance

Answers were Sorted based on User's Feedback



Frnds.... i have one doubt we have the num like this +913757575......i want to remove 91 and ..

Answer / tdguy

Substr function would be suitable for this requirement.
Even if the column type is integer, substr can be used.
Implicit casting takes place. But trim function should be
used to avoid leading spaces.
example: column name - phoneno - type integer
value: - 913757575
SEL SUBSTR(TRIM(PHONENO),3,7) FROM TABLE;
Above sql will give you the correct output.

Is This Answer Correct ?    7 Yes 0 No

Frnds.... i have one doubt we have the num like this +913757575......i want to remove 91 and ..

Answer / hanumanth

Hi we can use substr function in teradata

like

sel c1,substr(c1,4,13)from table.

like this we can load

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More Teradata Interview Questions

why varchar takes 2 extra bytes?

4 Answers   IBM,


What is difference between user and database in teradata?

0 Answers  


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 ?

0 Answers  


What are the things to be considered while creating secondary index?

0 Answers  


Fast Load Script is failed and error tables are available then how do you restart?

3 Answers   TCS,






how do you handle ET and UV errors ?

2 Answers  


Explain amp in teradata?

0 Answers  


in a BTEQ we have 2 insert 2 del 2 update statment. when the BTEQ is restarted i need to run the BTEQ from after DEL statment(means no need to run the insert & del stat).what is the logic for the above requirement?

2 Answers   HCL,


What are the differences between TerdataV2R5 and V12 Versions please??

3 Answers  


In Teradata, what is the significance of UPSERT command?

0 Answers  


What are the string manipulation operators and functions associated with teradata?

0 Answers  


Difference between stored procedure and macro?

0 Answers  


Categories