what is the querry to get first 10 records from the emp
table?(emp no is the primary key)

Answers were Sorted based on User's Feedback



what is the querry to get first 10 records from the emp table?(emp no is the primary key)..

Answer / lara

SELECT column FROM table
WHERE ROWNUM <= 10

Is This Answer Correct ?    21 Yes 2 No

what is the querry to get first 10 records from the emp table?(emp no is the primary key)..

Answer / karthik

select * from emp
where rownum <=10;

or

select * from (select rownum r,emp.* from emp)
where
r between 1 and 10;

Is This Answer Correct ?    8 Yes 0 No

what is the querry to get first 10 records from the emp table?(emp no is the primary key)..

Answer / sunil

select * from emp where rownum<=10;

or

select * from (select rowid ri,e.* from emp e order by ri)
where ri<=10;

Is This Answer Correct ?    1 Yes 0 No

what is the querry to get first 10 records from the emp table?(emp no is the primary key)..

Answer / prachi

select TOP(10) from emp
orderby empid

Is This Answer Correct ?    1 Yes 8 No

Post New Answer

More Oracle AllOther Interview Questions

what is diff between pre insert,on insert,post insert triggers?

1 Answers   IRISA,


When the procedures or packagess become invalidate

3 Answers   TCS,


what is the difference between TRUNCATE and DELETE command in SQL

23 Answers   ICICI, Saama Tech, SkyTech, TCS,


types of receipts and detail desription about recipts and tables effected by receipts?

0 Answers  


HOW SHALL WE DIFFERENTIATE BETWEEN PRIMARY KEY AND FORIEGN KEY?

4 Answers  






Differentiate between standard remittance and bills receivable remittance : oracle accounts receivable

0 Answers  


Explain how to close periods in ar. : oracle accounts receivable

0 Answers  


What is an Oracle database Partial Backup?

0 Answers  


what are the tools used for oracle 10g in real time.

0 Answers   IBM,


What view would you use to look at the size of a data file?

1 Answers  


Difference between transaction type and transaction sources. : oracle accounts receivable

0 Answers  


Explain the difference between a hot backup and a cold backup and the benefits associated with each

1 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)