how to retrive only second row from table?

Answer Posted / kishan kumar

select empno,ename,sal,comm,job,mgr,deptno from emp
group by empno,ename,sal,comm,mgr,deptno,rownum 
having rownum in (2);

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Collation Sensitivity ? What are the various type ?

698


Is vs as in pl sql?

672


What is informix sql?

727


How to add, remove, modify users using sql?

745


What type of database is cloud sql?

778






Why do we need unique key in a table?

673


How do you explain an index number?

747


What is ttitle and btitle?

768


what is uncommittable transactions? : Transact sql

752


How do I view stored procedures?

739


How do I pipe the output of one isql to another?

722


what are the differences among rownum, rank and dense_rank? : Sql dba

742


Why do we need a foreign key?

757


How can you maintain the integrity of your database on instances where deleting an element in a table result in the deletion of the element(s) within another table?

868


How much does sql certification cost?

746