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...

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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do you get spool space errors? How do trouble-shoot them?

1046


How do you define Teradata?

1023


What is collect statistics?

983


what are the uses of fact table and dimension table in banking project?

4544


My table got locked during mload due to a failed job. What do I do to perform other operations on it?

1086


Explain the new features of teradata?

1025


How do you set the session mode parameters in bteq?

1090


What is meant by a Least Cost Plan?

1055


Can you connect multiload from ab initio?

1202


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

1109


How to select first n records in teradata?

1083


Describe primary index in teradata. And what are the available primary index types?

987


What is difference between user and database in teradata?

1057


What are the functions involved in shared information architecture?

1059


Give a justifiable reason why Multi-load supports NUSI instead of USI.

1142