Hi Experts , Can you please help me regarding the below
question How to remove first three rows and last three rows
in informatica.. thanks and regards Natraj
Answer Posted / akash
I can suggest 2 ways of obtaining the results:
1. Through source qualifier, filter and sequence generator:
From source qualifier get the total records count in one
port, say record_count and from sequence generator add an
input port, say record_number.
In the filter add the condition:
(record_number > 3) AND (record_number < (record_count - 2))
2. Using the following sql query: (not sure about the
results. Please confirm the same and suggest any updates if
required):
select key_field, DESCRIPTION from temp_table
where
ROWID NOT IN (SELECT ROWID FROM TEMP_TABLE WHERE ROWNUM <=
3)
AND ROWID IN (SELECT ROWID FROM TEMP_TABLE WHERE ROWNUM <=
(SELECT COUNT(*) FROM TEMP_TABLE) - 3)
In the above query temp_table is the table name, key_field
and Description are column names.
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
Which are the different editions of informatica powercenter that are available?
How to handle decimal places while importing a flatfile into informatica?
COL1,COL2 ABC,1 XYZ,2 HERE IN COL2 VALUES 1,2 NOT STSANDARD(IE MEANS NOT FIXED VALUES LIKE OTHER SOME VALUES LIKE 10,20) O/P IS COL1,COL2 ABC,2 XYZ,1
Informatica settings are available in which file?
Do you find any difficulty while working with flat files as source and target?
what is Active lock explain
Explain direct and indirect flat file loading (source file type) - informatica
What is target load order?
tell me 5 session failure in real time how can you solve that in your project?
can we override a native sql query within informatica? How do we do it?
What is workflow manager?
Differentiate between sessions and batches?
Clarify the aggregator change?
difference between informatica 8.1.1 and 8.6
How union transformation is used?