if we hav 10 records in a file, can we get first record from
it by using Aggregator with out using Groupby Port in it?If
Yes..let me know the answer plz!!!

Answers were Sorted based on User's Feedback



if we hav 10 records in a file, can we get first record from it by using Aggregator with out using ..

Answer / jhilam roy

Sorry guys...correction...If you do not select any group by
port in an Aggregator transformation and also want the first
record of any input record set, then, simply use the FIRST
function with no group by ports selected. Because, if there
is no group by ports selected, by default, FIRST treats all
rows as one group, returning one value. However, make sure
that the first record is not NULL. If a value is NULL, FIRST
ignores the row.

Is This Answer Correct ?    26 Yes 2 No

if we hav 10 records in a file, can we get first record from it by using Aggregator with out using ..

Answer / jayesh

Dont use group by.By default it will give last row.To
override it,use FIRST function.

Is This Answer Correct ?    9 Yes 0 No

if we hav 10 records in a file, can we get first record from it by using Aggregator with out using ..

Answer / jhilam roy

Simple answer: NO, provided, only the Aggregator
transformation is used.
In an Aggregator transformation, if no port is selected as
Group By, then by default, the PowerCenter Sever returns the
very last row of the input record set, definitely not the
first one.
It scans sequentially starting from the first port of the
input set and continues till the last port is hit. If it
fails to find any port designated as Group By, the default
nature is to return the last record of the input record set
to the downstream transformation or target.

Any updation is appreciated.

Jhilam

Is This Answer Correct ?    7 Yes 5 No

if we hav 10 records in a file, can we get first record from it by using Aggregator with out using ..

Answer / naresh

I have column like col1,col2,col3 i am using first function
in col2 it work only that col2 i want first record means
col1,col2,col3 all first values How to get Please give me
solution.

Is This Answer Correct ?    1 Yes 0 No

if we hav 10 records in a file, can we get first record from it by using Aggregator with out using ..

Answer / janardhan

Hi Guys, I need sql query for the above functionality.
I mean sql query to get last record from 10 records same like aggregator transformation in informatica which gives last record if we don't give any group by.

Is This Answer Correct ?    0 Yes 0 No

if we hav 10 records in a file, can we get first record from it by using Aggregator with out using ..

Answer / bala

@abhinav...
How can you sort records by using rownum...its not possible

Is This Answer Correct ?    1 Yes 2 No

if we hav 10 records in a file, can we get first record from it by using Aggregator with out using ..

Answer / venkat

Yes, we can get first record using aggregator below are the
steps:
First need to sort all the records by desc and connect to
aggregator transformation than connect to target without
using gropby port than you will get first record.

Ask me any questions to <ittoolboxdwh@gmail.com> this is my
mailid.

Cheers
Venkat.

Is This Answer Correct ?    6 Yes 9 No

if we hav 10 records in a file, can we get first record from it by using Aggregator with out using ..

Answer / abhinav

hey I am having one answer regarding the same.may be it
will work.

SQ (sql override)(select * from emp1 order by rownum desc)--
>aggregator-->target

thanks
Abhinav

Is This Answer Correct ?    1 Yes 6 No

Post New Answer

More Informatica Interview Questions

write a sql query following source? subject mark maths 30 science 20 social 80 requird output maths science social 30 20 80

3 Answers   iGate,


What are the challenges of Dataware housing in the future?

2 Answers   HP,


write sql query following source table jan feb mar apr 100 200 300 400 500 600 700 800 900 100 200 300 i want the output format like month total jan 1500 feb 900 mar 1200 apr 1500

3 Answers   Accenture,


When to use normalization transformation other than cobol source?

2 Answers  


How to eliminate duplicates from flat file..what is the procedure

4 Answers  






In a sequential batch can u run the session if previous session fails?

3 Answers  


How do we come to know the Source data/file is ready/Updated in the source location, when the session is scheduled for @12:00AM and ready to run its job ? or Can we schedule the session, when the source is updated in source location without any time constraint?

2 Answers   iFlex, TCS,


What are the transformations that are not supported in mapplet?

0 Answers  


tell me some dimension tables names in banking domain informatica project(dont tell like depends on project, tell me names of dimension and fact table names in your project)?

3 Answers   IBM, Patni, TCS,


What is the Difference between PowerPlay transformer and power play reports?

1 Answers  


How can you increase the performance in joiner transformation?

0 Answers  


How many cubes create from a single model?

1 Answers  


Categories