how to get the first row without using rank t/r?

Answers were Sorted based on User's Feedback



how to get the first row without using rank t/r?..

Answer / moorthy g

In Source Qualifier Sql Override
Ex: Table Name: Dept1
SELECT DEPT1.DEPTNO, DEPT1.DNAME, DEPT1.LOC
FROM
DEPT1
WHERE ROWNUM=1

Is This Answer Correct ?    12 Yes 0 No

how to get the first row without using rank t/r?..

Answer / abhishek kumar

step 1
if first row h as not null then we can use first()
function in aggregator T/F.

step 2
use sequence generator T/F And filter T/F write condition
nextval=1

Is This Answer Correct ?    10 Yes 0 No

how to get the first row without using rank t/r?..

Answer / gandra krishna reddy

by using first function in aggregator transformation.

Is This Answer Correct ?    5 Yes 1 No

how to get the first row without using rank t/r?..

Answer / moorthy g

SQ-Sorter-Seq-Exp-Fiter(nextval=1)-Target

Is This Answer Correct ?    5 Yes 1 No

how to get the first row without using rank t/r?..

Answer / basi

your question is worng . because you are asking fist row
why are you using rank t/r

Is This Answer Correct ?    5 Yes 1 No

how to get the first row without using rank t/r?..

Answer / balakrishna

select empno,name,deptno,loc from emp where rownum=1
                       and
first using sorter select asc,create expression t/r using the variable v_count=v_count+1,o_count=v_count after using the filter t/r to write condition o_count=1 connect filter t/r to target                       
                      and
source--->sq--->seq--->exp--->filter--->target
                      and
select * from emp where rownum=1minusselect * from emp where rownum=2

Is This Answer Correct ?    0 Yes 0 No

how to get the first row without using rank t/r?..

Answer / venkatgiri

select * from Table_name limit 1

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More Informatica Interview Questions

What is resilience time?

0 Answers  


which transformation should we use to get the 5th rank member from a table in informatica?can we achieve this in sql?

6 Answers   IBM,


What is souce qualifier transformation it is active or passive

2 Answers   HCL,


If we use only lookup transformation in a mapping ie, SourceQualifier-->Lookup --> Target. , here datas are taking very long time to load in target., so what are steps to improve the performance in that mapping???????

2 Answers  


How to recover the standalone session?

2 Answers  






In pmcmd command we need to type -p:password. Will it be visible to others who is having access to this file ?

4 Answers   Puma,


How to load query faster,so that It will take less time to load?

1 Answers   BNP Paribas,


.prm wirh repalce .txt is possible?

2 Answers  


How to load last 10 records of flat file in to the target?

5 Answers   iNautix,


Give one example for each of conditional aggregation, non-aggregate expression, and nested aggregation?

0 Answers  


Hi, Can someone send me the DWH and Informatica FAQ's at vanibv6@gmail.com Thanks in Advance, Vani

2 Answers   Wipro,


can you use flat file for repository?why?

2 Answers   TCS,


Categories