ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories >> Software >> Data-Warehouse >> ETL
 
 


 

Back to Questions Page
 
Question
CAN ANY ONE SEND ME THE CODE FOR THE BELOW
1).REMOVE '_' FROM TELE PHONE "323-237-2323" AND SHOULD 
DISPLAY OUT PUT AS "323237232"
2). NEED TO ONLY "COMPANY.COM" FROM EMAIL 
FILED "TEST@COMPANY.COM"
Rank Answer Posted By  
 Question Submitted By :: Sreedhar
I also faced this Question!!   © ALL Interview .com
Answer
Use trim(columnname,'_','a') to remove the '-' values from 
the columns

2) use field function: field(columnname,'@'2) to get the 
company.com

Thanks
Kumar
 
0
Kumar
 
 
Answer
use TRANSLATE function

select 
translate ('323-237-2323','0123456789-', '0123456789') 
from table_name;
 
0
Bilas
 
 
Answer
2)if findc(emailid,'@','company.com')=0 then 
emailid=emailid;
 
0
Erqf
 
 
 
Answer
replace ('323-237-2323','-', '')
 
0
Kumaravelu
 
 
Answer
substr('TEST@COMPANY.COM',instr('TEST@COMPANY.COM','@')+1)
 
0
Kumaravelu
 
 
Answer
select replace ('323-237-2323','-') from dual

select substr('abc@co.com',-7) from dual
 
0
Kkr
 
 
Answer
select trim(replace('2-3-4','-',NULL)) from dual
 
0
Kuttu
 
 
Answer
select substr('12132@dfsaf.com',
              instr('12132@dfsaf.com', '@')+1,
              length('12132@dfsaf.com'))
  from dual
 
0
Again Kuttu!!
 
 
Question
we have 1 source table containing 100 records. now we have 
to transfer first set of 1-10 (i.e1-10) records to one 
target table and another set of 1-10(11-20) records to 
other target table and continue like that till 100th record
Rank Answer Posted By  
 Question Submitted By :: Coolani
I also faced this Question!!   © ALL Interview .com
Answer
we can use the sql below to indicate the rownum.
then router the data according to the rownum from upstream.

select t.*,rownum rn from test t
where mod(floor(t.rn/10),2) =0  --get the rows whose rownum 
between 1~9,20~29,etc.
 
0
Zslstar
 
 
Question
Hello all,

Source Table(Flat File):-        Target Table(Flat File):-

Date                              Date

01/08/2008(DD/MM/YYYY)            01/08/2008
                                  02/08/2008
                                  03/08/2008
                                  04/08/2008
                                  05/05/2008

My requiremnt is this. I need to do it by informatica,Plz 
tell me how can i do it?

Thanks




Rank Answer Posted By  
 Question Submitted By :: Amrita
I also faced this Question!!   © ALL Interview .com
Answer
The simplest thing U can do is

while importing the source flatfile using "Flat File Import 
Wizard" 
In Step1 choose-> FixedWidth
in the step2 -> click and create a column or tab on the 
field then U can import them as 2 fields 
1. 01/08/2008
2.(DD/MM/YYYY)

U can ignore the second column and use the first one.


second method is by taking only the date value in 
Expression Transformation.

Hope this of any help

Kal
 
0
Kal
 
 
Answer
In expression transfromation 
to_date(datecolumnname,dd/mm/yyyy) and pass this link upto 
target
 
0
Bhagya
 
 
Answer
if you require only 5 rows in the target we can use 5 
target aliases and acheive it.
 
0
Kuttu
 
 
 
Back to Questions Page
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com