Capgemini Interview Questions
Capgemini Interview Questions
4) how do you load data to a table based on target load order -> we can define whihch
target will load frist by using target load order
5) send first three records to one target, next 5 records to another target,remaining to
another target.-> 1.TAke expression drag column to expression 2.take sequence
generator and start value with 1 and drag nexvalue toexpression 3.take router and take
both column to the router and make condtionnexvalue<=3 , nexvalue>3 and
nexvalue<=8 and nexvalue>8 4. connect to the
output**************************************************************************************
********************************************************Cognizant Interview questions
2. How to remove duplicate from table in oracle-> DELETE employeeWHERE rowid NOT
IN (SELECT MAX(rowid)FROM employee
GROUP BY EMPID);
3. What are the column names of Fact table in your project-> STUDY:
id,name,country,date, study description SITE:id, country, SUBJECT:
4. what is the purpose of loading the Dimention Table in your project-> To make the
reports and dashboards ,data monitor
5. What the use of Agg. Transformation-> To perform aggregate function like sum ,avg,
min ,max
So be careful guys
2.how to load unique records into one table duplicate records into another table-> 1.
take aggregate transformation find the count of the cloumn 2. take router and make
two condtion one is count =1 for unique and count!=1or default gruop can be used for
duplicate 3.indirect file method-> Used to load the source files with same structure by
using singal sourcequlifier to the target
this is for variable-> Yes, By giving theIn mapping1 create a mapping variable say var1
and set its value to cloumn.Create a workflow variable in the workflow, say var_wkfIn
session1, in Post-session on success variable assignment, assign var_wkf = var1In
mapping2, create a mapping variable, say var2In session2, in Pre-session variable
assignment, assign var2=var_wkfYou can use the var2 variable in mapping2, it should
have the value set in mapping1
8.do you have knowledge on MD5 function->You want to write changed data to a
database. Use MD5 to generate checksum valuesfor rows of data you read from a
source. When you run a mapping, compare thepreviously generated checksum values
against the new checksum values. Then, writethe rows with updated checksum values to
the target. You can conclude that anupdated checksum value indicates that the data has
changed.
11.How to update the records without update strategy transformation->use "insert else
update" option at session, the informatica first look in totarget table to see if the data
exeist for coming primary key valye. If yes, it will update otherwise insert.
1. HLD and LLD documents-> HLD : High level document is the overall system design -
covering the systemarchitecture and database design. It describes the relation between
various modules and functions of the system. data flow, flow charts and datastructures
are covered under HLD LLD: (LLD) is like detailing the HLD. It defines the actual logic for
eachand every component of the system. Class diagrams with all the methods and
relationbetween classes comes under LLD. Programs specs are covered under LLD
3 .explain complex thing you had done in your project->4. How will you give the
parameterized connections-> We will create one file in BWParam location in that we will
mention all targetand source and if needed parameter and will give location of that file
in seesionor in workflow
7. Star schema and snowflake schema-> Star schema: Fact table sourdded by dimension
table . Snowflake: Fact table sourdded by dimension table and that dim table is
againconnected to dimension
8. Partitioning->Partitioning Option to increases the performance of ETL through
parallel dataprocessing.
10.Hash User-Keys->The Integration Service uses a hash function to group rows of data
amongPartitions, We define the number of ports to generate the partition key
12. Dense , rank , rownum->13. Delete duplicate records->WITH cte AS ( SELECT EMPID
, ROW_NUMBER() OVER (PARTITION BY EMPID, ORDER BY EMPID) as row_num FROM
employee)DELETE FROM cteWHERE row_num > 1;14.stored procedures->15. Dynamic
lookup cache-> dynamic LKP chnages the cache every time the service perocess the
lookup. usethis when we want insert or update the target
16. How do you load alternate records.-> take expression sequence-generator cycle 1-2
only , then router 1 will go to theone target and 2 will another target
17. Primary key and foreign key-> Primary key is used to uniquely identify a row
.Foreign key is used to connecttwo tables or maintain relationship between them
18. Indexes->Used to speed up the data retrieval form the database . liek select ,
ordelete,update , insert
19.views->virtual table of an SQL statement.The fields in a view are fields from one
ormore real tables in the database
20 Sorter active or passive why??-> Sorter is passive bez it does not changing no of
rows
21 Active and connected->An active transformation can change the number of rows
that pass through thetransformation A passive transformation does not change the
number of rows that pass throughthe transformation
22.How do you create single lookup transformation using multiple tables?->we have the
lOOKUP OVERRIDE Query in the Lookup transformation. Use the SQl Queryto join the
tables you lookup on
23.what is worklet and what use of worklet and in which situation we can use it?..-
>Worklet:- Group of tasks taken to accomplih a task is known as a Worklet.Use of
Worklet:- You can bind many of the tasks in one place so that they caneasily get
identified and also they can be of a specific purpose.
*********************************************************************************************
****************************Infosys Interview questions--------------------------------1)SQl
operations->2)difference between fact and dimension-> Fact: Quantitative data , we can
make calulation on them Dimension : Descriptive data, information regarding facts
fields3)push down optimization-> Convrt the Transformation logic into sql queries and
push them into eithersource ot target side
5)persistent lookup cache-> Integration service will save the cache file and it will reuse
for the next time
6)dynamic lookup-> its type of lookup cache . whenever IS peocess the lookup every
time the cachewill chnage it is called the lookup cache
8)why sorter is active transformation->when we check distict option then it will acts as
active
9)why union is active transformation-> it combines two or more data streams into one
an no of rows are not chnaging
11)target load order->we can define whihch target will load frist by using target load
order
14)sql index ing->It is used to retrive the data fastly from database 15)sql performance
tuning->Reduce Table Size,Simplify Joins,Use SELECT Fields FROM Instead of SELECT
*FROM,Use WHERE Instead of HAVING
18)which is the better one of delete and truncate and why?->TRUNCATE is faster than
DELETE,TRUNCATE is used to delete all the rows from atable
19)do you have knowledge about IICS->NO20)difference between union and union all-
>union: will eliminate the duplicate union all: will not eliminiate duplicate
21)data driven types and update startegy and explain them->To insert, update, or delete
row values by an identifying key, choose the DataDriven Load type.
1- How to find duplicates in a table-> Select empId , Count(*) from employees group by
empId having count(*)>12- How to delete duplicates from a table->delete from
EMPLOYEESwhere employee_id in (Select e.employee_id , Count(*) from EMPLOYEES e
group by e.employee_id having count(*)>1 )
3- Difference between union and union all-> uninon will remove the duplicate , but
union all will not remove the duplicate
&****************
select e.department_id, e.salary, dense_rank () over ( order by e.salary desc ) rnk from
EMPLOYEES e
from EMPLOYEES e)
8- Difference between inner and left join->9- update a table and swap gender
values.>update employeesset gender = case gender when 'Male' then 'Female' when
'Female' then 'Male' else 'Other' end
Active Transformation – An active transformation changes the number of rows that pass
through the mapping.
Source Qualifier TransformationSorter TransformationsAggregator TransformationsFilter
TransformationUnion TransformationJoiner TransformationNormalizer
TransformationRank TransformationRouter TransformationUpdate Strategy
TransformationAdvanced External Procedure Transformation