how u can find the n row from a table?

Answer Posted / santosh kumar

SELECT EMPLOYEE_ID,LAST_NAME,SALARY,DEPARTMENT_ID
FROM (SELECT ROWNUM
R,EMPLOYEE_ID,LAST_NAME,SALARY,DEPARTMENT_ID FROM EMPLOYEES) A
WHERE A.R=&Record_Number;

---------------------------------------------
(This is easy method to find nth record from a table).....

Is This Answer Correct ?    30 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are there any features that are decommissioned in 11g that are not present in 11g?

1576


Why do we use sql constraints? Which constraints we can use while creating database in sql?

535


What is the use of index in hive?

536


Which join condition can be specified using on clause?

508


What is the difference between a primary key and a clustered index?

511






Can we use insert statement in function?

508


Which sql most popular?

539


what is the difference between delete and truncate commands? : Sql dba

518


Are null values same as that of zero or a blank space?

519


What is the difference between inner join and natural join?

499


What are the advantages of pl sql over sql?

531


What is a procedure in pl sql?

535


Explain about various levels of constraint.

513


name 3 ways to get an accurate count of the number of records in a table? : Sql dba

550


What is nosql vs sql?

551