Click here to Skip to main content
15,891,694 members
Home / Discussions / Database
   

Database

 
QuestionMs Access Problem? Pin
catztay5-May-04 13:39
catztay5-May-04 13:39 
AnswerRe: Ms Access Problem? Pin
Roger Wright5-May-04 15:07
professionalRoger Wright5-May-04 15:07 
GeneralInner Join (JOY!) and Datasets Pin
Tristan Rhodes5-May-04 12:46
Tristan Rhodes5-May-04 12:46 
GeneralRe: Inner Join (JOY!) and Datasets Pin
Edbert P5-May-04 13:04
Edbert P5-May-04 13:04 
GeneralRe: Inner Join (JOY!) and Datasets Pin
Tristan Rhodes6-May-04 6:32
Tristan Rhodes6-May-04 6:32 
GeneralRe: Inner Join (JOY!) and Datasets Pin
Edbert P9-May-04 12:24
Edbert P9-May-04 12:24 
GeneralOracle SQL Pin
pankajdaga5-May-04 11:51
pankajdaga5-May-04 11:51 
GeneralRe: Oracle SQL Pin
Mike Ellison6-May-04 5:33
Mike Ellison6-May-04 5:33 
You can use rownum in Oracle to do this.
SELECT * FROM Some_Table WHERE rownum < 2
If a specific sort or filter is necessary, you can perform that as a subquery, then select from that result using rownum. This selects the top 5:
SELECT * FROM
  (SELECT * 
     FROM Some_Table 
    WHERE Some_Field = 'Value' 
    ORDER BY Some_Other_Field
   )
WHERE rownum < 6;

GeneralRe: Oracle SQL Pin
WoutL13-May-04 0:45
WoutL13-May-04 0:45 
GeneralEncrypting Data Pin
MKlucher5-May-04 6:55
MKlucher5-May-04 6:55 
GeneralRe: Encrypting Data Pin
Mazdak5-May-04 7:33
Mazdak5-May-04 7:33 
GeneralRe: Encrypting Data Pin
MKlucher5-May-04 7:38
MKlucher5-May-04 7:38 
GeneralRe: Encrypting Data Pin
Mazdak5-May-04 7:47
Mazdak5-May-04 7:47 
GeneralRe: Encrypting Data Pin
MKlucher5-May-04 10:03
MKlucher5-May-04 10:03 
GeneralRe: Encrypting Data Pin
Mazdak5-May-04 10:13
Mazdak5-May-04 10:13 
GeneralRe: Encrypting Data Pin
cmk5-May-04 8:53
cmk5-May-04 8:53 
GeneralRe: Encrypting Data Pin
pankajdaga5-May-04 10:18
pankajdaga5-May-04 10:18 
GeneralQuestion about Oracle tools Pin
Keith Vitali5-May-04 5:42
Keith Vitali5-May-04 5:42 
GeneralRe: Question about Oracle tools Pin
Guillermo Rivero5-May-04 5:53
Guillermo Rivero5-May-04 5:53 
GeneralRe: Question about Oracle tools Pin
Keith Vitali5-May-04 6:08
Keith Vitali5-May-04 6:08 
GeneralRe: Question about Oracle tools Pin
Mike Ellison5-May-04 7:40
Mike Ellison5-May-04 7:40 
GeneralRe: Question about Oracle tools Pin
Chris Meech5-May-04 7:44
Chris Meech5-May-04 7:44 
GeneralRe: Question about Oracle tools Pin
Keith Vitali5-May-04 8:59
Keith Vitali5-May-04 8:59 
GeneralRe: Question about Oracle tools Pin
Chris Meech5-May-04 9:30
Chris Meech5-May-04 9:30 
GeneralRe: Question about Oracle tools Pin
Keith Vitali5-May-04 10:11
Keith Vitali5-May-04 10:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.