Sie sind auf Seite 1von 3

1

Question
Is it passive or active when check and uncheck the box of DISTINCT in Sorter
transformation? why?
Answer
# 1
Sorter Transformation is passive when the DISTINCT option is unchecked bcoz it
wont change the number of records passes through it. Once the DISTINCT option is
checked it
may change the no of records if the records has duplicates.
Answer
# 2
It is Active transformation.
If you configure the Sorter transformation for distinct output rows, the Mapping
Designer configures all ports as part of the sort key. When the PowerCenter Server
runs the session, it discards duplicate rows compared during the sort operation.
Answer
# 4
I sorter is an Active Transformation,I u check the Distinct option it will output
only the distint rows from the source .
Answer
# 5
if we check the box distinct means u are eliminating the duplicate record.so here
if we check the distinct while sorting its eliminating the duplicate records and
after its
sorts so the number of records in target are less compared to source for that it
is calles as active. if we uncheck
this all the records are transforms into target table so it
is passive.
Question
if i have records like these
(source table)
rowid name
10001 gdgfj
10002 dkdfh
10003 fjfgdhgjk
10001 gfhgdgh
10002 hjkdghkfh

the target table should be like these by using expression
tranformation.
(Target table)
rowid name
10001 gdgfj
10002 dkdfh
10003 fjfgdhgjk
xx001 gfhgdgh
xx002 hjkdghkfh
(that means duplicated records should contain XX in there
rowid)

Answer
# 1
create an output port and write the expression to replace
values or create a stored procedure and call it expression
transformation
2

Answer
# 2
Through Dynamic lookup you can handle it very easily.
Answer
# 4
First make sure the values are sorted by rowid and passed
to an expression transformaion.Now create a variable port
in the exp. Lets think var1 and make it empty in the
expression .

now compare rowid with var1 by

IIF(VAR1=ROWID,XX||SUBSTR(ROWID,3,3),ROWID)

When the session starts, since initially the var1 is null,
it will be replaced with first rowid. When the second
record is passed, the values will match the required format
of rowid will be passed and remember to pass the value in
the var1 to the next transformation or target.

Hope this will solve.
Please let me if anything is wrong or does not work out.
Answer
# 5
its not working
Question
Hi Friends,
I want lo truncate my records from target before loading
current month data,but i dont have permission to truncate
with truncate option
if u know any other way please give your valuable input for
this.

Thanks
Abhishek
Answer
# 1
Use delete * .... in pre-sql
Answer
# 2
Abhishek Bhai,

Possible Solution:-

1. While creating connection, use such a generic id, which
have all the permission on DB objects. This way you
definitely can play with your Target object.

2. If no such credential available then, Delete and commit
process can be implemented in pre-sql.. but process will
become very slow (depends on volume of data).

Cheers !
3

Answer
# 3
in the warehouse designer,in targets ,in generate and
execute option truncate the table

Das könnte Ihnen auch gefallen