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

Explain some differences between mpp and smp?

1099


What are the functions of a teradata dba?

1074


Mention a few of the ETL tools that come under Teradata.

1079


List out teradata data types?

1006


What are the newly developed features of Teradata?

1031


Explain vproc in teradata?

1000


How many sessions of MAX is PE capable of handling at a particular time?

1080


What type of indexing mechanism do we need to use for a typical data warehouse?

1165


What is meant by a Clique?

1063


Why are oltp database designs not generally a good idea for a data warehouse?

1056


Explain teradata vs. Redshift?

1016


What do you mean by teradata intelliflex?

1100


What are some commonly used bteq scripts?

1009


Differentiate database data and data warehouse data?

1112


What is smp and mpp platforms?

971