my source contain data like this
eno ename phno
100 john 9989020508
101 ram 7246599999
i want to load the data into target is
eno name phno
100 john (998)-9020-508
102 ram (724)-6599-999.

Answers were Sorted based on User's Feedback



my source contain data like this eno ename phno 100 john 9989020508 101 ram 724659999..

Answer / ravi

i think the query should be like this
phoneno =
'('||SUBSTR(phno,1,3)||')'||'_'||SUBSTR(phno,4,4)||'_'||SUBSTR(phno,8,3)

Is This Answer Correct ?    11 Yes 1 No

my source contain data like this eno ename phno 100 john 9989020508 101 ram 724659999..

Answer / rajesh

select ‘(‘||substr(TNO,1,4)’)’||'_'||substr(TNO,5,3)||'_'||substr(TNO,8,3)) from TABLE_NAME

Is This Answer Correct ?    5 Yes 3 No

my source contain data like this eno ename phno 100 john 9989020508 101 ram 724659999..

Answer / manthiramoorthy. g

S==>SQ===>Exp===>Target
In Exp. Trans.

Create one port.
phone_out =
'('||SUBSTR(phno,1,3)||'-'||SUBSTR(phno,4,3)||'-'||SUBSTR(phno,7)

The Output is: (123)-456-7890

Is This Answer Correct ?    7 Yes 5 No

my source contain data like this eno ename phno 100 john 9989020508 101 ram 724659999..

Answer / ravikumar2614

phone_no=||'('||substr(pno,1,3)||')-'||substr(pno,4,3)||'-'||substr(pno,8,3)

Is This Answer Correct ?    0 Yes 1 No

my source contain data like this eno ename phno 100 john 9989020508 101 ram 724659999..

Answer / dilip ingole

in sql use
SELECT REGEXP_REPLACE('9975344018', '(d{3})(d{3})(d{4})', '(1)-2-3') FROM DUAL;


in informatica also same use REG_REPLACE instead of REGEXP_REPLACE ..

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Informatica Interview Questions

what is the size of ur database(like oracle)

2 Answers   HP,


Define joiner transformation?

0 Answers  


how can we check whether a particular cache is static or dynamic?

1 Answers   InfoCepts, TCS,


when i try to connect to the repository server i am getting this message can someone help me.. Starting Repository [infa_rep] (6016|1292) Informatica Repository Agent, version [7.1.1], build [0811], 32-bit. (6016|1292) Copyright (c) 2000-2004 Informatica Corporation. All Rights Reserved. This Software is protected by U.S. Patent Numbers 6,208,990; 6,044,374; 6,014,670; 6,032,158; 5,794,246; 6,339,775 and other U.S. Patents Pending. (6016|1292) Informatica Repository Agent starting up. (6016|1292) Security audit trail has been turned off. (6016|1292) infa_rep: Repository runtime manager initialized. (6016|1292) infa_rep: Initialized configuration information. (6016|1292) infa_rep: Initialized request dispatcher. (6016|1292) Database Connection Error : Failed to logon to Database server ORA-12154: TNS:could not resolve service name Database driver error... Function Name : Connect Database Error: Failed to connect to database using user [] and connection string []. (6016|1292) Service stopped.

1 Answers  


What is the advantage of informatica?

0 Answers  






Write the unconnected lookup syntax and how to return more than one column.

0 Answers  


what is diff between grep and find

3 Answers   IBM, iFlex,


What is a router transformation?

0 Answers  


How to recover the standalone session?

2 Answers  


what is the need of session partitioning... how it is useful in real time

3 Answers   Amazon,


explain different levels in pushdown optimization with example?

2 Answers   TCS,


While using update strategy in the mapping which gives more performance, a flat file or Table? Why? What are the advantages and disadvantages?

4 Answers  


Categories