how to retrive only second row from table?

Answer Posted / vamsi krishna

this query will give the correct answer.
all the answers which are given above are absolutely wrong.
(take it easy who posted them)
select * from (select rownum as r1,empno,ename,sal,deptno
from emp) where r1=2;
(take default emp table for execution)

Is This Answer Correct ?    12 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is coalesce in sql?

547


How does one load ebcdic data? : aql loader

639


What is pls_integer in pl sql?

528


Is json a nosql?

529


What is the use of partition by in sql?

508






What is procedure and function?

507


What is a file delimiter?

550


Is join and inner join the same?

529


How can we implement rollback or commit statement in a trigger?

567


how to install mysql? : Sql dba

571


How do you modify a column in sql?

520


Define implicit and explicit cursors.

620


Explain 3 basic parts of a trigger.

820


What is the advantage of nosql?

514


Can you call pl/sql package functions from within a fast formula?

558