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

How show all rows in sql?

797


explain advantages of innodb over myisam. : Sql dba

828


Explain aggregate functions are available there in sql?

750


Explain the difference between sql and mysql.

753


List and explain the different types of join clauses supported in ansi-standard sql?

1030






How do I run pl sql in sql developer?

855


How many types of cursors supported in pl/sql?

794


What are different types of keys?

736


What is normalisation and its types?

727


what are the join types in tsql? : Transact sql

755


What are the different dml commands in sql?

762


Is sql a dbms?

732


How do you modify a table in sql?

800


Why do we use view in sql?

727


Explain what is rdbms?

780