GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Data Warehousing  >  Informatica
Go To First  |  Previous Question  |  Next Question 
 Informatica  |  Question 582 of 631    Print  
When we are having data in the target table and there are no primary key or foreign key mentioned in the target table then how will you update as well as insert the data?

  
Total Answers and Comments: 4 Last Update: July 30, 2008     Asked by: madhu2732 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
November 25, 2007 23:35:28   #1  
Rambabu.Gali        

RE: When we are having data in the target table and th...
Simple Mr Madhu,

Take a dynamic lookup on the target table and  compare the values of target and source in an expression and flag the values so that you can update or insert.

Now in Informatica 8.1 there is a newly added function is there to avoid to do all these stuff.

For ex:

if u have some values like 101,102,103 in target, look up on target will get the values, and connect to an expression and connect the ports comming from source also and then compare those values... if there is any change in any column then flag that value with Y or N. and filter accordingly.

 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
December 23, 2007 17:42:02   #2  
hemachandra Member Since: September 2005   Contribution: 4    

RE: When we are having data in the target table and there are no primary key or foreign key mentioned in the target table then how will you update as well as insert the data?
Hi Rambabu

what is that feature in informatica 8 which you mentioned, could you please explain it, i want to know the additional new feature

it will be very helpful - thanks

 
Is this answer useful? Yes | No
May 15, 2008 04:33:25   #3  
h02kkvel Member Since: May 2008   Contribution: 3    

RE: When we are having data in the target table and there are no primary key or foreign key mentioned in the target table then how will you update as well as insert the data?
Hi rambabu,
                    what the answer you have given is woring. if you dont have any primary key in your target table then how will you update the table. since update stratergy t/r works on primary key column only. without pk it is not possible.

the simple answer is first define a primary key (any one column)in your informatica metadata.(no need in database). then update the target.

regards
kiran

 
Is this answer useful? Yes | No
July 30, 2008 00:19:36   #4  
vivek1708 Member Since: May 2008   Contribution: 18    

RE: When we are having data in the target table and there are no primary key or foreign key mentioned in the target table then how will you update as well as insert the data?
It is true - that it wont work without the keys - dynamic look up and update but if the combination of the columns used for look up always returns a unique value - the update shall still work, even if the keys are not defined.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape