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
What is the use of stored procedures in teradata?
What is meant by a dispatcher?
How do you set the session mode parameters in bteq?
What are the joins in teradata and how many types of joins are there in teradata?
What are the steps involved in the process flow of the sql statement through channel attached system?
Comment whether bottleneck is an error or not.
What are the commands to make a new table, change a table and remove a table in teradata?
How is MLOAD Client System restarted after execution?
How do you do backup and recovery in teradata?
Highlight the advantages of PPI(Partition Primary Index).
What are the available primary index types in teradata.
Why are oltp database designs not generally a good idea for a data warehouse?
Differentiate primary key and partition key?
Let us say there is a file that consists of 100 records out of which we need to skip the first and the last 20 records. What will the code snippet?
tomorrow i have interview in infosys.can someone pour any suggestions or any interview questions. thank you