Home   My Faqts   Contributors   About   Help   Link to FAQTS  

faqts : Computers : Databases : Oracle

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

37 of 47 people (79%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

In a sql query,how do u get the first 50 records,when the where clause selects more, say 200 or 1000, without loops and cursors

Dec 5th, 2001 07:12
sivakumar s p, Jayanta Barua,


SELECT  <Col_List> 
  FROM  <TableName>
 WHERE  <Condition>
   AND  <Condition>
   AND   Rownum < 51