GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Data Warehousing  >  Abinitio
Go To First  |  Previous Question  |  Next Question 
 Abinitio  |  Question 148 of 196    Print  
how to use override key in join !

  
Total Answers and Comments: 2 Last Update: December 21, 2006     Asked by:  
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
December 07, 2006 06:34:05   #1  
prabhakaran        

RE: how to use override key in join !

When we need to join 2 fields which has different field names.Then we can use overridekey0 to specify what is the field name in in0 and field name from in1 in overridekey1.

Example:

in0 DML

record

string( 01 ) Employee_Name NULL( ); /* VARCHAR2(30)*/

string( 01 ) Age NULL( ); /* VARCHAR2(300)*/

string(1) newline n ;

end

in1 DML

record

string( 01 ) Emp_Name NULL( ); /* VARCHAR2(30)*/

string( 01 ) Salary NULL( ); /* VARCHAR2(300)*/

string(1) newline n ;

end

To do innerjoin on the basis of Employee name we have to specify

overdrivekey0 {Employee_Name}

overdrivekey1 {Emp_Name}


 
Is this answer useful? Yes | No
December 21, 2006 06:50:23   #2  
mukund        

RE: how to use override key in join !

Hi folks

generally override key concept comes when we have two non-matching fields where we want to have a join on it

let me throw insight into this

suppose i have 2 files say FILE1 FILE2

FILE1 has a key emp_id and FILE2 has a fkey emp_code after connecting these two to join component it will highlight override key option where we have to decide which key should be overrided ie override key0 and override key1

place emp_code as a key for override key 1 .ie we are matching key of FILE1 with key of FILE2.join works properly

hope this helps u

mukund


 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : Just to complete the remaining considerations. The outer join, just like the explicit semi joins, will assign null to the non existing fields that should be assigned  by the non existing flows. Therefore lookout for non-nullable fields. ...

Latest Answer : in abinitio,there are 3 types of join...1.inner join.        2.outer join         and 3.semi join.for inner join 'record_requiredn' parameter is true for all in ports.for ...
Read Answers (3) | Asked by : sekr

Ab Initio Interview questions compiled. Someone please answer them. It will help all of us here.1) What is the difference between dbc and cfg? When do you use these two?2) What are the compilation errors you came across while executing your graphs?3) What is depth_error?4) During the execution of graph, let us say you lost the network connection, would you have to start the process all over again or does it start from where it stopped?5) Types of partitions and scenarios.6) What does unused port
Read Answers (1) | Asked by : ss

Latest Answer : Join with Database (Join with DB) should not be used if number of records to be joined with a table is very high as it degrades performance. Better result can be achieved by retrieving the data from db table and using join component. There should definitely ...

Latest Answer : Hi folks, generally override key concept comes when we have two non-matching fields ,where we want to have a join on it let me throw insight into this suppose i have 2 files say FILE1,FILE2 FILE1 has a key "emp_id", and FILE2 has a fkey" ...
Read Answers (2) | Asked by :

Latest Answer : If you have to perform full outer join then you should go for join not for lookup. ...
Read Answers (5) | Asked by : sandeep

If I have 2 files containing field file1(A,B,C) and file2(A,B,D), if we partition both the files on key A using partition by key and pass the output to join component, if the join key is (A,B) will it 
Latest Answer : The partition key and join key do NOT have to be the exact same.  In order to join properly, you just have to make sure the records being compared are in the same partition.  So if the partition key is broader than the join key (which it is ...


 Sponsored Links

 
Related Articles

Breaking up XML into Relational Data

Breaking up XML into Relational Data While the preceding example shows how to construct an XML representation over relational data the example in this section illustrates how you can shred XML data back into relational data This reverse operation can be useful if your application works with relation
 

Querying Data with Oracle XQuery

Querying Data with Oracle XQuery Starting with Oracle Database 10g Release 2 you can take advantage of a full featured native XQuery engine integrated with the database With Oracle XQuery you can accomplish various tasks involved in developing PHP Oracle XML applications operating on any kind of dat
 

Retrieving XML Data

Retrieving XML DataTo retrieve XML data from an XMLType table you can use a SELECT SQL statement just as you would if you had to query a relational table For example to select the employee with the id set to 100 from the employees XMLType table discussed in the preceding section you might issue the
 

Using XMLType for Handling XML Data in the Database

Using XMLType for Handling XML Data in the Database Being an object type XMLType can not only be used to store XML data in the database but also to operate on that data via its built in methods Regardless of the storage model you choose XMLType provides a set of XML specific methods to operate on XM
 

Using Oracle Database for Storing, Modifying, and Retrieving XML Data

Using Oracle Database for Storing Modifying and Retrieving XML Data With Oracle XML DB you have various XML storage and XML processing options allowing you to achieve the required level of performance and scalability One of the most interesting things about Oracle XML DB is that it allows you to per
 

ODP.NET - Techniques to Improve Performance while Retrieving Data

ODP NET Techniques to Improve Performance while Retrieving Data Performance tuning is a great subject in Oracle Volumes of books would not be enough to cover every aspect of performance tuning in Oracle However in this section we will only discuss the fundamental performance techniques while working
 

ODP.NET - Populating a Dataset with a Single Data Table

ODP NET Populating a Dataset with a Single Data Table A dataset is simply a group of data tables These data tables can be identified with their own unique names within a dataset You can also add relations between data tables available in a dataset mosgoogle The following code gives you the details o
 

ODP.NET - Retrieving Typed Data

ODP NET Retrieving Typed Data While retrieving values from OracleDataReader we can extract information available in individual columns of a particular row either by using column ordinal position values or column names mosgoogle Retrieving Typed Data Using Ordinals ODP NET provides data specific enum
 

ODP.NET - Retrieving Data Using OracleDataReader

ODP NET Retrieving Data Using OracleDataReader OracleDataReader is simply a read only and forward only result set It works only if the database connection is open and it makes sure that the connection is open while you are retrieving data As the data that it retrieves is read only it is a bit faster
 

ODP.NET - Fundamental ODP.NET Classes to Retrieve Data

ODP NET Fundamental ODP NET Classes to Retrieve Data To retrieve data from an Oracle database using ODP NET we need to work with a few of the ODP NET classes At this point we will discuss the most fundamental classes available in ODP NET for retrieving data mosgoogle The following is the list of fun
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape