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 are the standard concurent programs for auto invoice interface and customer interfaces? : oracle accounts receivable

0 Answers  


how to get the values if source table & target table having duplicate values that matches the lookup condition ?(i want all duplicate match)

1 Answers  


A scenario for amount correction & how to use amount correction functionality in AP invoices

0 Answers  


I have 3+ Years experience HR with Technical Recruitment Industry. Now i would like to learn oracle HRMS Models of all aspect. please suggest any one, which institution is best for oracle HRMS practical with real time teaching in Chennai, Tamilnadu. What are the basic stat up to learn Oracle HRMS with Core strongly?

1 Answers   Oracle,


PURCHASE ORDER TO PAYABLES WHAT ENTREIS WILL HAVE

0 Answers  






Can We Restore a Table that accidantly dropped.

8 Answers   TCS,


how to create an user in oracle 10g.please give me an example..

1 Answers  


HOW TO SPOT AHIERARCHY?

0 Answers  


Give the two types of tables involved in producing a star schema and the type of data they hold.

1 Answers  


Describe what redo logs are.

1 Answers  


Explain the use of table functions.

0 Answers  


Explain the difference between a FUNCTION, PROCEDURE and PACKAGE.

10 Answers   TCS,


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)