Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
13 views27 pages

Informatica Questions and Answers Complete

The document consists of a comprehensive set of interview questions and answers related to ETL processes, specifically focusing on Informatica, UNIX commands, SQL, PL/SQL, and Data Warehousing concepts. It covers various topics such as transformations, performance tuning, data integration, and database management. The content is structured in a question-answer format, providing insights into practical applications and theoretical knowledge in these areas.

Uploaded by

jchrocks123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views27 pages

Informatica Questions and Answers Complete

The document consists of a comprehensive set of interview questions and answers related to ETL processes, specifically focusing on Informatica, UNIX commands, SQL, PL/SQL, and Data Warehousing concepts. It covers various topics such as transformations, performance tuning, data integration, and database management. The content is structured in a question-answer format, providing insights into practical applications and theoretical knowledge in these areas.

Uploaded by

jchrocks123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 27

Question # Question

INFORMAT

1 Tell me about yourself


2 Tell me about
Difference your roles
between Joinerandandresponsibilties as an etl developer
Lookup Transformation? and
3 which one is better to use?
4 How to check
Is union a field value
transformation is date
a union or in Informatica?
union all and what the differnece
5 between the two?
6 Is Union
stored transformation active or passive?
procedure transformation passive or active transformation and
7 why?
8 How many conditions we can put in filter transformation editor?
9 Which
How toisupdate
better target
filter ortable
router transformation?
when primary keys is not defined on target
10 Can
tablewe(Say I want
return to update
multiple portsafrom
column but primarylookup
unconnected key istransformation,
not known) if yes
11 how?
If unsorted input is passed to aggregator after selecting sorted input
12 option at aggregator
What will be output oftransformation,
not selecting any what will happen?
group by column in aggregator
13 transformation
How to find where is the performance issue in Informatica if a mapping is
14 Tell
running
me 1slow?
limitation, where we cannot use the pushdown optimization
15 technique?
Tell me full flow of SCD type 2, you can proceed with telling how and when
16 which transformation will be used.
17 How
Whattois delete
dynamic duplicate records
and static cache using informatica,
in lookup tell me different
transformation and where wayswhich
18 is used, pls tell the cache used in your project?
What will be output when we select to "return all values on multiple match" in
19 lookup transformation?
20 In
Howwhich column
to run rankingworkflow
Informatica position formlike 1,2,3 is stored
unix box or may in be
rank transformation?
name the unix
21 level
command andso
is done, how
thattoInformatica
use it? service does what is coded in update strategy
22 tranformation
23 How to get value returned from database in middle of pipeline in informatica designer
24 What is tracing level and how many types of tracing level are there?
25 How to reuse lookup cache?
26 What are audit tables in Informatica
27 Difference between mapping parameter and variable
28 Which table to be designed as master in joiner transformation and why?
29 Why
Whichlookup
type of transformation
cache you have is active?
used un your project and why? if I need to drop the
30 duplicates using dynamic lookup, how to achieve this.
31 How many parameter
If mapping joiners do we need if we
or variable valueareisnot
notusing
found source qualifierfile,
in parameter to join sources
where will
32 integration service try to locate it next?
33 What is difference between full and incremental load?
34 How to load incremental data using informatica
35 Where to use $$ and $ while using mapping/session parameter/variable
36 What is a mapplet
If we have 50 partitionsand which transformations
on Source then how many cannotandbewhat
usedtypes
in it of threads are created
37 in Informatica, also tell us different kinds of threads are created
38 How many typoes of partitioning we have in Informatica and what are they?
39 Why
How we use automation
informatica will behavetoolswhen
like CA&,
source TWS
filterwhen we query
and sql have informatica schedular?
both are defined in source
40 qualifier transformation?
41 Have you used normalizer transformation in your project and what it does ?
42 What kind of performance tuning you have done in your project
43 What was the complex mapping you made, may be you can tell the requirement
44 How to execute database procedure from Informatica?
45 What is change data capture?
46 Tell me a transformation other than normalizer which increase the output row count
47 Tell me difference between stop and abort in workflow session
48 Where you have used mapping parameters and variables
49 Tell me the functions used in your project?
50 What is session on grid
51 What is stop on errors?
52 What is line sequential buffer length properly at session level in Informatica?
53 How you get source data in your project?

54 What is the methodology you follow in your project?

UNIX
Question
1 How to find description about a command in unix
2 Command to long list the files with all the details like size, owner of file, group of file
3 Meaning of # !/usr/bin/ksh in beginning of shell script
4 What is export in shell script
5 What is alias command and its benefits
6 How to find a file on unix box in some directory?
7 How to find a pattern/word in afile
8 How to replace some characters in file with some other character everywhere?
9 What is awk command and where it is used?
10 What is usage of xargs command?
11 Differenece betweenpatterns
How to find multiple find andingrepfile, command
like i want to find zaid and A in file, how to find it using
12 single command?
13 what will be output of ls -l
14 How to source .bashrc file on unix box
15 How to get between
Difference script name inside the
no quotes, script
single andto double
use it as per requirement
quotes usage for variable in unix shell
16 scripting
17 Difference
How to createbetween
al logexit
file 0inand exit
shell 1 in and
script unixappend the same in script as we would need to log
18 the activities whats happening inside the script
19 Which command to use to send email to my mailbox when the script fails
20 Difference between echo and cat
21 How to see execution of script on unix box?
22 How to check status of last command executed?
23 What is the difference between cmp and diff commands?
24 What is the diff command?
25 Tell me difference between du and df command in Unix

SQL
1 Write a query to remove duplicates from table, give me atleast 2 ways?
2 Whcih will be faster in joins a normal column in table or rowid column and why?
3 How many types
to create of indexes
a table are theretable
using another and and
howdon't
do indexing works?
load data from table which is being
4 copied?
5 What is normal and materialised view? which one is required when?
6 Difference between exists and IN and which is better for performance
7 What is difference between truncate table and drop table?
8 Tell me about different types of constraints in sql
9 Difference between primary and surrogate key?
10 Difference between count(*), count(1) and count(column)?
11 What is a partition by clause?
12 Tell me the difference between primary key and foreign key
13 What is explain plan
14 What is tablespace in sql
15 What is difference between Subquery and corelated Subquery
16 What is the difference between rank and dense rank function?
17 Can we update views?
18 Can we have null foreign key?
19 What is order of execution in Select query

PL/SQL
1 What is the difference between function and procedure?
2 Can
Why wewe call
writefunction insidefunctions,
procedures, a procedure and vice-versa,
packages when sameif yes
canhow?
be done via writing
3 select/update statements?
4 Where do we use database trigger
5 Why do write a cursor when same can be done with select/update statements
6 What is a database link
7 What is merge clause and given an example?
8 Difference between %TYPE and %ROWTYPE
9 Tell me the difference between rollback and rollback with savepoint
10 Tell me about different types of cursors in plsql
11 What is the difference between anonymous block and procedure?
12 What is dynamci query in PLSQL?
13 Name the difference in the execution of triggers and stored procedures
14 What is exceptional handling in plsql
15 Name some of the cursor attributes in plsql

DataWareHo
1 How many types of dimensional models are there and what is the difference between the tw
2 Explain your project which model you used and why?
3 Tell me different type of dimension we have with an example?
4 What
Why do is factless
we needfact table? key when we have primary key in table which is nothing but
surrogate
5 the natural key from source
6 Tell
Howme differencethe
to minimise between data mart
target lookup dataand
so data warehouse?
we don't get unwanted data from target
7 while we are loading data from stage to main table
8 Tell the difference between operational systems and operational data store
9 What is difference between OLTP and OLAP?
10 Tell me about different types of facts?
11 What is a Galaxy schema in datawarehousing?
12 What is difference between logical and physical design?
13 What is late arriving dimension in Datawarehousing?
Answer
INFORMATICA
Hi, I have 3.5 years of experience in ETL Technology Informatica where I have
worked on various data integration and datawarehousing projects. I also have quite enriching
experience in unix, database development as well. Also I have spent good amount of time in
automating the etl
name to testing process
team byit,Control-M,
to test Tivoli
I also attend and calls
scrum cron and
jobslet
asthe
well.
project manager know the status of
various
sort lookup tasks file.and impediments if any. We agree on a date to complete a so and so task.
We cannot
Use ISDATE dofunction
other joins like left outer,
in expression right outer, in
transformation fullInformatica
outer in lookup
where transformation.
output value of 0 means
true(yes,
Union its a date) and
transformation does 1( union
means allnoandits we
not)could get duplicates in output. Union remove duplicates
and union
Acitve, as the all doesn't.
sequence of row can change in the output, means row no 1 in incoming group can be row
number 2 in
Its always passive as output group.
it will not increase/decrease the no of rows passing through it and returning
from it.
Unlimited
2. Router transformation doesn't block the incoming record, whereas filter transformation blocks or restricts the
incoming
Here record on thewas
the requirement condition
to update given.the target record "total sales" column to value of incoming "total
sales"3:field
Step by filtering
Segregate the the target record
full_name columnwhere emp_name
at expression = 'MIKE seperate
by creating SMITH' ports for firstname and last
name.
session will fail
Integation
Open session service will display
log and search last busyrecord of dataset.
percentage and see if we have high busy percentage at source/target or
some
We transformation
cannot and try toinfix
use the technique it.
different databases, source and target databases has to be in same database
forSequence
4. us to implement it. Generate sequences and load into target
Generator:
5 Update
3. Strategy(just
Use aggregator and for updates):
do group by on Toall
update
columns the target record basis the source record.
4. Using dynamic cache in lookup and it will drop the duplicate record.
Dynamic
Informatica cache is important
will duplicate thewhenrows in wecasehaveofduplicate record means,
multiple match in sources
if 1 and canrecord
source be used to drop the
is matching duplicates.
with 4 rows in
lookupIndex
Rank table,Xolumnthen downstream
( by defaulttransformation after lookup
created while creating will have 4 source
transformation). Pleaserecords.
note it's a output port
only. It willpmcmd
Example: store top/bottom
startworkflow 5 or-svwhatever
Integrationyou number
service nameyou specify in this
-d domain -uproperties.
username -p password -f
foldername workflowname
Select
Use Stored Data procedure
Driven at session level and call the procedure in transforamtion and the same will hit the
transformation
database
detailed transformation statistics. from
and get value returned Whenthere, which canthe
you configure be tracing
used inlevel
downstream
to verbose transformation.
data, the integration service
writes
2. Giverow thedatacache forfile
all name
rows inina"File blocknamewhen it processes
prefix" in lookup a transformation.
properties and same will be read by lookup transformation
on mapping
started at thisrun, time and ended at this time, these many rows are processed, source read rows and target loaded rows
count are
Value also captured
of mapping parameterin audit tables.
is fixed during session run but variable will change during or after the session run and
final value will be saved to the repository and the same value will be used in next session run.
The table with less rows will be designed master so that less number of join iterations happen.
Because
Static cache it can as return
we dont mulitples
had therows when itinmatches
duplicates my source multiple
system rows
andinmajorly
lookup ittable.
is used to capture if source has no
change or it is insert ot update.
n-1Initial
3. where valuen is defined
the number of sources
in mapping andwhich needs under
parameters to be joined.
mapping tab.
4. Default
When we load valuefull source data then it is full load and when only new records are loaded leaving the old records behind,
we calltoit filter
query incremental
the newor delta loading.
records and the value of same can be set during the mapping run at expression transformation by
setvariable() funcation
name are defined with parameter and same will are be saved to
declared by repository
$ sign to select the new record for next session run.
3. XML Sources
4. Cobol
50 partitions Sourceswill create 50 threads, there will be 50 reader/writer/tranformation threads which will run in parallel to load data bu
we would
Round Robin:needData to add 50 conditions
is evenly distributedin session source level so that 50 partitions have distinct records.
to all partitions.
Pass through: Data remain in same partition after passing the passthrough partition.
We cannot set the dependency in Informatica schedular but in external 3rd party tools we can.
Informatica
GCID ; Thiswill willdiscard
give thethe filter and
number consider sqltoquery
corresponding no offor processing.
occurs specified in transformation like 1,2,3.
Gkey: sorted
4.Use this field will beofre
input have the value of the corresponding columns which will display in rows now for that record.
aggregator.
5. Filterdata
lookup the records
with justwhich
1 month are data.
not required at source qualifier transformation itself and not at later stage in pipeline.
We are
from ablewhich
there, to achieve
can betoused load in 1.5downstream
billion records in 90 minutes with this approach.
transformation.
2. We can also call procedure by CALL
Change data capture is nothing but getting incremental/delta procedure_name; in pre
dataorfrom
postsource
sql in source/target.
basis mapping variable or the source field will a
the latest date and we need to filter it using mapping variable
Router
A abort transformation.
command workds As exactly
same row likecan
thepass
stop multiple
command, groups and hence
however thethe
it will tell output row count
integration is more
service thanprocessing
to stop input row count in
and com
to targetsisafter
Variable whose 60 value
seconds.
keepIf changing
all processes aresession
during not complete
run and after
finalthis timeisout
value period,
saved the session
to repository likegets terminated.
mapping variable creation
incremental load.
Decode,
When weIIF, ISNULL,
allow REG_MATCH,
our session to run on REG_REPLACE, ISDATE
grid, then it runs on etc
many nodes(machines) and uses more system hardware as we are r
single
It meanson after
multiple
hownodes
many which
errorsruns multipleservice
integration dtm threads.
should stop the session, default value of it is 1, which means session stops
We
It is can set it tolength
maximum 5 to stop afterthat
of bytes 5 errors or -1 toservice
Integration never stop it. Configure
can read from flatits filevalue in config
source, tab of
decrease itssession.
value in config tab of session
performance.
Steps to login to other server:
mget $srcfilename (m means multiple, get means get the file in srcfilename)
EOF
to that story. (end of connection)
We mark the stories as NOT STARTED, IN PROGRESS and DONE as we progress on them.

UNIX
Answer
man <command_name> will provide you description about the command
ls -ltr which give full details about the file like permissions, who is owner of file, to which group the user belong, size of file, nam
It will give headsup to shell that unix commands are coming up in below script for you to execute
hello
Above $MY_VAR
Syntax : alias param= variable was used outside the script and we could see the value outside as well
"cd/usr/ospi/Srcfiles/PFT"
now execute .~/.bashrc -- to permenently save the alias value in linux box and use it anytime later
find -type If want
Suppose /directory_path
to find pattern -nameJohn filename
in file sample.txt. Command has to be like below
grep "John" sample.txt
sed
Find's/ram/zaid/g'
total number filename,
of rows inhere a filegwith
is globally
below: replace the value in file
awk
Ecample I want to create 3 empty files in a{print
'BEGIN {sum=0} {sum =sum+1} END singlesum}' filename
command statement,
echo "1.txt 2.txt 3.txt"| xargs touch
find finds a specified file based on parameters on unix box passed to find command but grep finds pattern inside the file
grep '-E Zaid\|A'
Example directory sample_file
has 3 files 1.txt, 2.txt and 3.txt, All will be displayed in a single quotes to display.
Double quotes replace the variable value.
. ~/.bashrc
Script_name
Single quotes=don't$(basename
replace the $0)variable
-- here basename command
value but will use the would get justthe
value inside thesingle
scriptquotes
name and not full path with file name
to display.
Double
exit quotessuccess
0 : marks replace of thecommand
varaible value.
exit 1:"Variable
echo marks failure
valueofforcommand
file_prefix = " java_1.csv > /usr/bin/ksh/jav_1/log -- this creates the java_1.log in /usr/bin/ksh/ director
echo "more data" >> /usr/bin/ksh/java_1.log
mailx command is used to send email and is written inside the shell script to send mail in some event.
echo command is used to send email and is written inside the shell script to send mail in some event.
ksh -x script_name parameter1(if any) --it will tell step by step execution of script
$? =0is--used
cmp success, 1-- failure
to compare files and return the status if files are identical
diff will give the difference what is required to make both files identical
diff will compare
df command file1 the
- shows withamount
file2 and of write the standard
disk space output
used and to liston
avaiable of changes required to make both files identical
linux file systems
du command - display the amount of disk space used by the specified files and for each subdirectory

1. Delete from SQLtable where rowid not in (select max(rowid) from table group by id)
2. create group by on all the columns of tables and get the list in sql
Rowid ishas
which alphanumeric
sorted and secondvalue androwid
being is the address
field of database
to uniquely identifyblock where
the row row is stored
in database blockand so itdireclty
which joins faster
mapsthan normal
to block colu
to whe
is stored
--here 1 isinist
database.
column of table D and 2 is 2nd column of Table D.
2. Create
Use Table EMPL_DEMO
materialized AS are
view when there Select * from employees
no frequent updates inlimit 0;
table.
Use normal view when there are frequent updates on base table
Parent query to take more time when using IN as it will scan full dataset for all the values before returning the result whereas e
result as soon as 1 record in found in inner query output.
truncate will drop and recreate the table, whereas drop will just drop the table.
Primary
Surrogatekey,
keycheck, not null,
is primary key unique, foreign
with which key - these
we uniquely are widely
identify the rowusedin a constraints
table. Mostat table
used in level as well column
datawarehousing level. and
dimension
natural key is not the primary key
count(1) - Returns the count of all rows due to it nature of duplicacy.
Count (some column) returns the no of distinct column values.
We didnt used
purposes. When group by function
we delete primary above and stillfrom
key record will table,
get theforeign
output.key record is also deleted from the table using "ON DELETE
DELETE
at ackendNULL
to getmeans
the datawhen primary
for us. In thiskey record we
example is deleted,
can seedelete
that forforeign key record
this select whole as well or set its
EMPLOYEES value
table to NULL. to return
is scanned
explain plan we can create on our query with the syntax given in snapshot on right.
Tablespace is a mechanism by which table, Index, views are mapped to data file in database block.
Query:would
Rank Select * from
give Customers where exists (select customerid from orders where orders.customerid = customers.customerid
1,2,2,4
Dense
Yes werank
can would
updategiveview1,2,2,3
if it is created from 1 table. But if it is created on top of multiple tables, it is updatable if it has relations
primary key or foreign key in tables, else it is not updatable.
No, as its a primary key from another table so it cannot have null values.
FROM --> WHERE ---> GROUP BY ---> HAVING -- SELECT ---> ORDER BY ---> LIMIT

2. FunctionPL/SQL
returns a value to calling funcation but procedure dont return a value to calling function.
3 We can call function in select statement and we cannot call procedure from select statement.
A procedure
have to create cannot be called inside
procedure/function soathat
function and
we can a function
have multiplecan be calledinside
statements insideand
a procedure
which execute in a
sequence
New and do what is required.
Salary:2500
Difference:1000
Cursor is used to bring the dataset from database into memory and then the execution is done on that part further.
SELECT
INSERT into* FROM tablename@dblink;
Employee(Empid, FirstName, LastName)
VALUES(SOURCE.EmpId,
TYPE EmpTabType IS TABLE SOURCE.FirstName, SOURCE.LastName);
OF employees%ROWTYPE
INDEX rollbacks
Rollback BY PLS_INTEGER;
the complete statement back to version where it was initially before firing the rollback. But rollback with
savepoint
Implicit is revert
cursor:- to the position
Its defined where
internally savepoint
within wasreturns
oracle and defined.one row for all the operations.
Explicit cursor:
Anonymous Defined
block by useratexplicitly
is complied run timeandandcan return multiple rows based on its definition
executed.
Procedure is compiled and saved to the database and does the action when it is executed.
Dynamic query is used when sql query is not known beforehand and same is built inside procedure when the procedure runs.
Procedures are triggered explicity and triggers are triggered implicity on an internal event
statement;
END;
SQL%ROWCOUNT - count the no of rows returned from cursor
SQL%ISOPEN - to check cursor is open for processing

DataWareHousing
In snowflake you have one or more fact table but surrounded by normalised dimensions or dimension are broken down into mu
tables.
We
timeare using snowflake
dimension modeldimension
is role playing as we need here.to built reports on normalised dimensions.
5. Slowly :changing
Example A table withdimension:
product SCD 1/2/3
key and timearekeyexample
field of it.
It doesn't on
duplicate givesame
us anykeyfact
frombutsource
just tells
we which
will notproducts
be able were soldthe
to store in key
whatastime.
database will not allow as it will violate the primary k
to store
1, unique
Data mart key value.
is created for a specific department of a company whereas datawarehouse has whole company data.
2. Datamart
Likewise youhascanless data,
write DW will
the query tohave
restricthugethedata.
data which will stop unnecessary data from coming from lookup table.
Select * from fact where id in (select id from
Operational systems are not which business runs like stage table)
POS systems in retail store and operational data store in where operatio
received from operational systems.
2. OLTP has current data, OLAP has historical data.
3. Query
so speeds
these dates arein updated
OLTP is as fastand
as when
they are operating that
it completes on small
stage. data whereas its slow in OLAP due to large data.

It shallwe
when contain many the
are seeing factarchitecture
tables with common dimensions.
of our project, we are seeing it in logical design.
Physical design is implementing the logical design in databases by creating tables, creating indexes on it and so on.
To handle this scenario, we will insert a dummy/placeholder record "patient unknown" in employee dimension and update this
actual employee information flows from company into system.
ut remember

already have
nmmitting
some cases.
data
n for

s after 1 error.

me of file etc

ere the table record


exists will return the

E CASCADE"/ON
the output and same

ultiple dimension

key constraint

on are done on data


record when
Question #
INFORMATICA
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

UNIX
1
2
3
4
5
6
7
8
9
10
11

SQL
SQL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

PL/SQL
1
2
3
4
5
Question
again. INFORMATICA
Which
2 group will a incoming record with column dept_id =10 pass?
3
My session is failing due to null being returned from lookup and trying to insert null into null column
into load
will target. How to
primary keyhandle this?
with sequence generator. If start value is 1 and end value is 10, cycle option
is not checked,
Sequence what will
generated happen? to 2 targets, how to make sure one target is loaded fully first then
is connected
second target should load
You
SupporthaveI want
10 identical
get count filesoffrom
rowssource
from emp andtable
we needwhere to name
load all= at one, hoe
'Mohan', wetowill
achieve
get thisthis
value Mohan
from source field column.
If your
How tomapping was records
load 1 billion running usingfine and is running slow now,
Informatica/database in how to figure
fact table out whatitcould
(remember be the
will take issue
huge
time/Forever
You are usingif awe do by alone
session parameter by informatica
and its value in defined in parameter file but when we run a session
we cannot
We did lookupsee on
its avalue replaced?
flat file what can
and selected just be the issuein lookup, when we run the session we can
2 columns
see wrong value is returned from lookup? what could be the reason?
How to append data to a existing file in Unix where file is the target in informatica?
How to insert same value for surrogate key in 2 targets using sequence generator?
How towill
What make
be thesure to start
output sequence
if only CURRVAL generator
columnfrom current value
is connected everytime? transformation
to downstream
and not NEXTVAL
IHow
don'ttowant
limit to
theuse
rowsthecoming
updatefrom target
strategy in lookup
mapping in main mapping?
but want to update and insert the records in target
table, how to achieve this
My session has failed and I want to send an email to me with session log, how to achieve this
Uniontotransformation
How replace some gives the union
characters all coming
in field (duplicate)
fromrows,
sourcehowwith
to get
someunion(non-duplicate)
other characters? Example
I want to replace 123 with shi in 123vani (which is coming in source field)
How to put first 3 records from source into ist target, next 5 into 2nd target and rest into 3rd target
I want to use both workflow and session parameter file simulatenously in workflow, how to achieve t
What value to set in "stop on errors" at session level so that session doen't fail?
How to generate dynamic target file based on given date format means generate a new file for each
Give me real time explanation on SCD1?
How you worked on incremental load in your project? please explain how we implement it?
How to represent the no in words?
How to generate
My lookup is takingunique
muchno without
time using sequence
to execute, generator?
nusy percentage is high at this (can see this in session log)
and so the mapping is taking much time to execute, any solutions?

UNIX
find a fileanamed
How to execute sopan.txtinside
unix command placed anywhere
script oncount
like find unix box?
of files ending with java.csv
in a directory
How tohow
there, get to
a file named
achieve java.csv placed on a different server in our server?
this?
Remember writing complete directory everytime is a gruesome task
How to display unique lines in a flie and that too sorted in a single line command?
I want to display the output on console and write the output of command to a file, give me the com
Give to dump output of a command to trash bin in Unix
I have to display 1at line from file but not using the head command, give me command for it.
How to remove trailer from a file in Unix script?
How to remove all files recursively under a directory and sub directories
Tell me 3 tasks cat command do

SQL
SQL
What will be output of "Select * from table where rownum > 5"?
A
N
How to select the rows from ist table which are only there in 1st table and not in 2nd table
How to select
Suppose the rows
we have singlefrom 1st table
column which
in table, aretocommon
how get data in
ofboth tables?
3rd row in 1st row as a seperate column as
a output?
1 1
1
Give me the query to read unique records from a table
How to find retrieve last 5 records from table?
How to fetch row no 20 to 40 from a table?
How
1 to get every 2nd record i.e even records from table?
1045
2
1 976
1015
2 3045
How to find 2nd highest salary without using rank/dense rank function
Write
2 1a sql query
7 how to generate data as displayed in target?
2 2 5
Name Percentage_marks_obtained
Rohit
Apple 35
Mango 65

PL/SQL
I want
If to write
we don't the output
defined packageof select statement
body and in a file,
just declare thehow to achieve
package this? will the compiler compile it or
specification,
give error?
Select row_number r from Table_Name where r =2;
Count no of L in 'HELLLL; give me the query
How to do insert and update in 1 go
Answer
INFORMATICA
Both group A and C, the incoming record will pass every group which matches
the
Thiscondition
expression before movingall
will equate to the
downstream
characterstransformation
in field value to null and just count the
operators
make a note that target field has to be integer for this else if its char field you would
need
its to define
value which the value
it will accordingly
not get as end value is 10 and cycle option is also disabled
so sequence
for 1 target and generator
foreign key will not generator
for other targetany more values
in target designer and session
and will constraint
enabling fail.
based
and nameloading at config
the file tab at session
as merge_file.txt andlevel.
give this filename with directory path at session level as
discusses
Select count(1)aboveas count_of_rows from emp where name= ~firstname~ and output this field
count_of_rows
search for busyinpercentage
downstream transformation
values at source, to use and transformation, it its near 100% at some place,
target
that is
and only the issue. the main table which were quick fast.
inserted/updated
Also we collected stats on table so that optimiser run the query in a efficient manner.
Declare
We cannot thejust
mapping
lookupparameter/variable
on 2 columns when at we
mapping
use flatlevel andlookup,
file as declarewe session
would variable at session
need to include level
all the columns
when we
Check onlookup
"append onfiflat file option in target properties at session level. This will append data to existing file
exists"
there and not create
Use expression entire file everytime
transformation after sequence generator and put NEXTVAL field from sequence generator to
expression tranformation and join the same port to both th
Use the reset option to reset the value to current value in session settings.
All the reset option to reset the value to current value in session settings
Select1:Column
Step 1, Column
Select "treat source 2 rows
from lookup_table
as" as Updatewhere column 1 exists (select column 1 from stg_table)
Step 2: Go Use %g to attach session logcheck
to target in mapping tab file to"Insert"
it. Giveand
other"Update
detailselse
like insert"
email address to
whom you want to send email
2. Enable distinct option in sorter transformation which eliminates the duplicate data.
3. Then connect it to the target transformation
REG_REPLACE(input_column,
join output of 2nd group to target'123','shi') 2 --- It will give result shivani
join output of default group to target 3
$PMMergeSessParamFile = TRUE
Set it to any negative value like -1 or -2
definition.
Filename
Now we dont generated
want towill keephave File_20220611,
a history of recordsFile_20220612 and sowill
but when description on change we just want to update the table.
Here we
"Step will use
3: Use SCD$$var_max_date
variable 1 at Source Qualifier and write SQL like
select * from table where table_load_date > $$var_max_date"
We are
Step firstlookup
1: Do converting here to
on target thefind
no the
to Julian date and
max value then to Julian
of sequence no which is number in words.
present.
Step 2: In Expression transformation, do max value +1
add order by in lookup override query on the column which is used in lookup and keep loading into join
surrogate key this
condition, in target
shall improve
performance by 50%, remember the input column has to be sorted for this to give optimum performance.

UNIX
find / -name
Write "sopan.txt"
a variable like below -- itinwill search
script andyour
use itcomplete
anywheremachine
ahead and find the file
in script
FILE_COUNT
cd = 'ls -ltr---move
/data/osp/srcfiles <directory_name>/
to directory *jave.csv |wc -l' is located
where java.csv
get java.csv -- get the file
../.bashrc
sort
Supposefile.txtyou
|uniq
want to display date on screen while script execute and write the same in file named
1.txt
>>/dev/null acts a dump and will consume and trash it whatever is dumped to it.
sed '2,$d' file.txt --lines from 2 till end are deleted here from output before displaying
sed -i '$d' file.txt
rm -r /directory_name
2. display content of file:cat /etc/passwd
3. Display content of multiple file: cat file1 file2.

SQL
SQL
No output, sql engine will not display anything when > is used with rownum
Select substr('MOHAN', level, 1) from table CONNECT BY Level <=5
Select id from table A minus select id from Table B
Select id from
LEAD(id, table(ORDER
2) OVER A intersect
BYSelect
id) ASidfuture_id
from Table B
from table;
Right Join: we will see 6 rows
Outer Join: we will see 6 rows
Important Tip: When we want unique record always do partition by on all the columns
Take an example that tables has 10 records and try to evaluate the query.
Here offset means to skip first 20 rows from processing
Select * from Table where mod(rownum%2) =0
Select id, count(1) from table where salary > 1000 group by id
Select id, Salary from table where id in (Select id , min(Salary) from table group by id)
Here offset
Select gendermeans
fromto skip 1rownum()
(Select row and limit
overmeans to limit
(partition the output
by gender) to 1 row.
as rownumber, gender
from table) p order by p.rownumber
Select m.Id, m.ar_id,
by test_number) m.amount from (Select p.ID,
as Percentage_marks_obtained p.ar_id, p.amount, p.max_amount - p.amount as
from CTE
Update table set fruit_rate = (case when fruit_name = 'apple' then 65
when fruit_name = 'grapes' then 105 end);

PL/SQL
spool off;
no error. Defining body is not compulsory for package specification compilation
nothing will be displayed on output screen
Select Length('HELLLL') - LENGTH(REPLACE('HELLLL',"HE")) from dummy
use merge and do insert/update in 1 go
date the table.
x_amount - p.amount as difffrom ( Select Id, ar_id, amount, max(amount) over (part
max(amount) over (partition by ar_id order by ar_id desc) as max_amount from table )p )mwhere
)p )mwhere m.diff =0
I'm not able to see workflow log for workflow
Question
in monitor which was ran 25 days back?
In Workflow Monitor, go to Tools tab ---> options ---> In time window portion set
maximum days =25, click OK.
Answer
Disconnect from repository and reconnect. You will be able to see all workflows
which were ran 25 days back
Question
We were having a requirement where we have to load the job requisition data (when someone applies to a job) to facts
and dimensions.
We had different dimension like inquirer, inquirer source, inquirer application data and fact like match requistion and then
build a aggregate named hire and contract which was used for metrics which need to be find out in spotfire reports.
Tell me about
Spotfire use toabuild
project on which
reports youto
to show worked in past
HR users or currently
about working?
these metrics.
We used star schema for this and so dimensions were denormalised.
a job) to facts

uistion and then


re reports.

You might also like