Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to retrive only second row from table?

Answer Posted / amedela chandra sekhar

SQL> select * from (select rownum as rno,emp.* from emp)
2 where rno=&n;
Enter value for n: 2
old 2: where rno=&n
new 2: where rno=2

RNO EMPNO ENAME JOB MGR
HIREDATE SAL
---------- ---------- ---------- --------- ----------
--------- ----------
COMM DEPTNO
---------- ----------
2 7499 ALLEN SALESMAN 7698
20-FEB-81 1600
300 30

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do you control the max size of a heap table? : Sql dba

993


Which is better join or subquery?

1151


What are records give examples?

1018


what are the 'mysql' command line arguments? : Sql dba

1150


How do I remove sql plus from windows 10?

1113


what are the authentication modes in sql server? How can it be changed? : Sql dba

1446


How much does sql certification cost?

1101


What is the use of %rowtype?

1048


Can sql developer connect to db2?

1058


Can unique keys be null?

918


How do you update a value in sql?

1058


How many commands are in sql?

1079


what is sql profiler? : Sql dba

1057


Is it possible to create the following trigger: before or after update trigger for each row?

1296


What is a common use of group by in sql?

1056