my source contain data like this
cno cname sal
100 rama@gmail.com 1000
200 karuna@yahoo.com 2000
i want load my data to the target is
cno cname sal
100 rama 1000
200 karuna 2000
plz send the answer

Answers were Sorted based on User's Feedback



my source contain data like this cno cname sal 100 rama@gmail.com 1000 200 karuna@yaho..

Answer / krishna

select substr(cname,1,instr(cname,'@')-1) from table name

Is This Answer Correct ?    19 Yes 3 No

my source contain data like this cno cname sal 100 rama@gmail.com 1000 200 karuna@yaho..

Answer / abhinaw prakash

1.Pass the coulmns to an expression transformation.
2.Create a variable port and use INSTR function to find the
location of @.
(INSTR(CNAME,'@')-1)
3.Create an output port and use SUBSTR function to extract
the substring from the string.
SUBSTR(CNAME,1,v_CNAME)
4.Pass it to the output port

Is This Answer Correct ?    3 Yes 0 No

my source contain data like this cno cname sal 100 rama@gmail.com 1000 200 karuna@yaho..

Answer / sehaj

DO ONE THING....
CREATE AN EXTRA PORT FOR THAT.
IN THE EXPRESSION EDITOR,WRITE

REPLACESTR(0,cname,(SUBSTR(cname,INSTR(cname,'@'),INSTR(cname,'m',-1,1)),'')

PASS THIS PORT TO THE OUTPUT PORT......


SEHAJ-7204719446

Is This Answer Correct ?    0 Yes 0 No

my source contain data like this cno cname sal 100 rama@gmail.com 1000 200 karuna@yaho..

Answer / shweta123

In the expression transformation use the following
function :

substr(name,1,(length(name) - instr(name,@,-1,1)))

Is This Answer Correct ?    0 Yes 0 No

my source contain data like this cno cname sal 100 rama@gmail.com 1000 200 karuna@yaho..

Answer / c

In the expression transformation use the following:

select cno,substr(cname,1,position('@' in cname)-1)as cname,sal from sample

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Informatica Interview Questions

What are pre and post-session shell commands?

0 Answers  


What the difference is between a database, a data warehouse and a data mart?

0 Answers  


i have one source 52 million records i want target only 7 records ?how wil you do what logic to implement?

7 Answers   L&T,


What are connected or unconnected transformations?

0 Answers   Informatica,


select count(1) from emp? what is the o/p?

5 Answers   TCS,






what is the mechanism of the Master-Detail joining condition?

6 Answers   IBM, Patni,


What are the different caches used in informatica?

3 Answers   UST,


Hi,tell me the system testing and Integration Testing in the Informatica ? Thank You

2 Answers   TCS,


Session S1, S2, and S3. In the session S3 I want to load every Saturday. How it is possible?

2 Answers   TCS,


How to improve the performance of Aggregate transformation?

3 Answers   Dmss,


write a sql query following table? col1 col2 1 2 1 2 1 2 3 4 3 4 5 6 i want the output like unique duplicate col1 col2 col1 col2 1 2 1 2 3 4 1 2 5 6

1 Answers   Cap Gemini,


in my source table one of column contains the data like vishnraju@gmail.com,suresh@yahoo.com,krishna@hotmail.com these records i need to send in target table as below format. vishnuraju,suresh,krishna

5 Answers   Cap Gemini,


Categories