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 are the main features of Oracle 8i with context to datawarehouse?

0 Answers  


Please let me know how to do estimation before staring development in project. Here estimation in the sense how many associates are required, etc to complete the project.

1 Answers   iGate,


What are the two modes of datamovement in informatica sever?

2 Answers  


What is difference between a gateway node and worker node?

0 Answers  


How can we remove the duplicates from flat file source?

0 Answers  


Converting Rows to columns I have Relational source like his. JAN FEB MAR APR 100 200 300 400 500 600 700 800 900 100 200 300 I need to convert these rows into columns to the targe. MONTH TOTAL JAN 1500 FEB 900 MAR 1200 APR 1500 Please experts help me

8 Answers   HP,


Hi Friends, How i could convert a cobol file (VSAM) into the flat file? How i could edit a cobol source file (VSAM)? I want to introduce few columns in the source file and finally the target should be in the Cobol itself. Kindly suggest me friends. Thanks in Advance, Innai

1 Answers   Infosys, Saksoft,


I have 100 records in source table, but I want to load 1, 5,10,15,20…..100 into target table. How can I do this? Explain in detailed mapping flow.

0 Answers  


How can i catch the Duplicate Rows From SorterTrans in a Seperate Target Table ?

2 Answers  


What is informatica etl tool?

0 Answers  


What is data merging, data cleansing and sampling?

6 Answers   Satyam,


WE HAVE 10 RECORDS IN SOURCE IN THAT GOOD RECORDS GO TO RELATIONAL TARGET AND BAD RECORDS GO TO TARGET FLAT FILE ? HERE IF ANY BAD RECORDS MEANS ITS LOAD INTO FLAT FILE AND SEND AN EMAIL , IF NO BAD RECORDS MEANS NO NEED TO SEND EMAIL . PLZ HELP ME ...

1 Answers  


Categories