Home > Software > Data-Warehouse > Informatica
Interview Questions   Tutorials   Discussions   Programs   

Informatica - How will you get 1 and 3rd and 5th records in table? What is the query in oracle?




456
views
asked marvit September 20, 2014 08:02 AM  

How will you get 1 and 3rd and 5th records in table? What is the query in oracle?


           

1 Answers



 
answered By vishnoiprem   0  
You can use below Query:

Select * from
(Select sal,
emp_id
row_number() over (partition by emp order by sal) row_num from emp)ref
where row_num in (1,3,5);

flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert