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

Does inner join remove duplicates?

522


What is delimiter sql?

546


what is “go” in t-sql? : Transact sql

603


Is full outer join same as cross join?

503


What is the difference between join and natural join?

473






What company owns postgresql?

562


What are triggers and its types?

555


Write an sql query to select all records from the table?

558


What is a primary key? Explain

542


What is blind sql injection?

578


What is full join in sql?

526


Why self join is used in sql?

499


What is query optimization in sql?

550


how can you see all indexes defined for a table? : Sql dba

537


Explain the uses of a database trigger?

571