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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a joiner transformation and why it is an active one?

569


what are factless facts? And in which scenario will you use such kinds of fact tables.

1301


Hello , I am unable to work with SQL transformation at least. Where do i need to give connection for sql transformaton ? At session level there is no property . I have created a SQL Transformation and chosen query mode. But do i need to pass connection information to it ? I don't know where do i need to write a query ? I have written a query in file and that file path i gave in the properties of SQL Transformation. But it is not working. Could any one of you please let know how can i work with SQL Transformation? Advance Thanks.

2314


Sequence generator, when you move from develoment to production how will you reset

1395


Define joiner transformation?

587






How to create or implement slowly changing dimension (SCD) Type 2 Effective Date mapping in informatica/Flagging mapping in informatica/visioning mapping in informatica?

701


Mention some types of transformation?

598


is it possible to index the data in cache of lkp transformation ?

1515


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

559


What are mapplets? How is it different from a Reusable Transformation?

617


How might one distinguish in the case of mapping is right or not without associating session?

634


Explain what are the different types of transformation available in informatica.

563


Explian the Process of deployment groups in informatica

646


I want my deployment group to refer an external configuration file, while i deploy in the production environment. How can i achieve it.

1571


What is the Process to creating lookup transformation in informatica

574