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

Can we use threading in pl/sql?

1036


what are wild cards used in database for pattern matching ? : Sql dba

1137


How does index help in query performance?

1028


What is the purpose of primary key?

1018


how to calculate expressions with sql statements? : Sql dba

1032


Is coalesce faster than isnull?

966


Can a foreign key be null?

1078


Differences between Oracle 9i and 10g (Probably in terms of SQL and PL/SQL)?

3567


Why use stored procedures?

1081


Can a key be both primary and foreign?

991


How delete all records from table in sql?

977


How much does sqlite cost?

1033


What is sql select statement?

1028


what is the difference between join and union? : Sql dba

1111


Why is sharding used?

993