how to get 2nd record in the records returned in Oracle

how to get 2nd record in the records returned in Oracle sql
umesh4expAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Naveen KumarConnect With a Mentor Production Manager / Application Support ManagerCommented:
You can even try :

select * from (
select d.*, rownum record_number  from your_tables d )
where record_number = 2
0
 
Guy Hengel [angelIII / a3]Connect With a Mentor Billing EngineerCommented:
you will have to clarify a bit more, but it shall be along these lines:
select t.*
 from ( select d.*, row_number() over ( order by somefield ) r 
          from data_table d
      ) t
 where t.r = 2
         

Open in new window

0
 
awking00Commented:
What determines "2nd" record and what is the query for which you want it?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.