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


Please Help Members By Posting Answers For Below Questions

Explain pushdown optimization $pushdownconfig parameter - informatica

703


source : xml file target: xml file how can we check data loaded into target xml file using writing sql query. pls help on this asap.

2299


What are the different types of olap? Give an example?

564


What is the need for an etl tool?

640


how to load dimension table and fact table. plz tell me the steps.

1687






What is standalone command task?

713


How can we delete duplicate rows from flat files?

746


How many numbers of sessions can one group in batches?

625


Briefly define reusable transformation?

627


Global and Local shortcuts. Advantages.

1472


Is it possible to use a client with different version than that of its Informatica server?

645


Is it possible to revert a global repository to local one and why?

615


Tell me about MD5 functions in informatica

528


What does refresh system mean, and what are its distinctive choice?

567


What are the advantages of using informatica as an etl tool over teradata?

569