How do you select n rows and not the whole table

Hi
I would like to only select the first 50 rows from a table and not the entire table. how do i accomplish this
Thanks

Sayeed's example will work great if you don't care which 50 rows you get back. If you do, you can use an inline view to sort them first and get back a ranked result set:
select *
  from (select whatever
        from table
       order by key desc
where rownum <= 50

Similar Messages

  • Mail: how to download ONLY last emails and not the whole hotmail.

    Hi!
    Quick question: like what Mail does in iPhones/iPads, how can I configure Mail in my iMac or Macbook Pro so that it only downloads the last, say 50 emails and not the 4000 aprox. emails I have inside the hotmail (now outlook) server?
    I have been wanting to use mail for a long time but I can't seem to find that option. I only want to see the LAST EMAILS like what happens in the app on my iPhone.
    Thanks.

    unless there is a special setting in yahoo webmail interface that allows this (gmail pop has it for example), there is no way to do it. POP will download all available messages on the first download. that's how POP works. from there on it will only download new ones.

  • How can I backup individual folders and not the whole disk?

    Hi Folks,
    I want to only backup specified folders with TM, just my iPhoto Library and some bits n pieces but notice it only gives the option to backup or exclude whole hard discs.
    Does anyone know a workaround for this?
    Thanks
    B

    just my iPhoto Library and some bits n pieces but notice it only gives the option to backup or exclude whole hard discs.
    In the TM preferences you would need to exclude all the files and folder you didn't want to back up.

  • I have an external hard drive that is partitioned three ways. I have made an install disk out of one partition. How can I use this partition, and not the whole drive with bootcamp assistant?

    See title.
    When the drive is plugged in, boot camp assistant says that no installer can be found, but the application doesn't list the three separate partitions like finder/disk util does.
    I am using a mid-'12 retina mac running os X 10.9
    Hopefully this is an easy fix.
    Thanks in advance.

    Hello,
    I have just experienced the same thing!
    Although my external drive shows in Disk Utility, it does not show in Finder.
    And the Verify/Repair buttons are also greyed out.
    Also, although the drive is 2TB. DU shows it as having Total Capacity of only 4.14GB! (Which should be the Free Space).
    I was wondering if you solved your problem, & if so, would you share your solution.
    I´m afraid to Erase in case I lose all my Data on the drive.
    Thanks in advance for your reply!

  • How do you move a single album, and not the whole library, in iPhoto to an external hard drive?

    How do you move a single album, and not the whole library, in iPhoto to an external hard drive?

    File -> Export to a folder and copy it over.
    That will give you a folder with the images. There is no way to move an album outside of iPhoto. You would need to have a library containing it.
    Regards
    TD

  • When I drag ANY JPEG into a new folder of ANY kind, I get an alias, not an original. And, when I drag aliases onto a  blank disk to burn it, I get burned aliases, NO originals. That's what I'm asking. How do you drag a JPEG and NOT get an alias?

    When I drag ANY JPEG into a new folder of ANY kind, I get an alias, not an original. And, when I drag aliases onto a  blank disk to burn it, I get burned aliases, NO originals. That's what I'm asking. How do you drag a JPEG and NOT get an alias?

    Finder Help describes how to move, copy etc.
    As well, Apple - Support - Discussions - Moving or Copying Files and ...

  • How do you add full folders and not just individual files in the new itunes?

    How do you add full folders and not just individual files in new itunes? i just reformatted my HD and went to add all my music and it's only letting me add files not folders!?!?

    "Add Folder to Library" is still in the file menu, but you might need to bring up the menu bar to see the file menu.
    If you're using 11.0.x, click on the wee boxy icon up in the top-left corner of your iTunes to see the "Show Menu Bar" control, as per the following screenshot:

  • How can I change one section of the document to a landscape orientation and not the whole document?

    How can I change one section of the document to a landscape orientation and not the whole document?

    Page Setup, including page orientation, is done in the File menu. The setting applies to the whole document. As Peter says, you can rotate the contents of a page (not including the text layer of a word processing document).
    As an alternative, you could use Numbers, where Sheets are empty canvases onto which you may place images, charts, tables and text boxes, and where page orientation may be set for individual Sheets. The main tradeoff is that you lose many of the built-in word processing and page layout features of Pages.
    Regards,
    Barry

  • How to force BI Server to pick from the Agg table and not the Fact table?

    Hi All,
    I have 3 tables as the Sources in the Key measures. 2 are fact tables and the other one is the agg table.
    E.g.
    Fact 1 at A,B,C,D and E level
    Fact 2 at A,B,C level
    Agg at A,B,C level which contains the measures from the Fact1 and Fact2
    So when I select the measures from the Agg which are coming from Fact1 the Agg table get fired and when I select measures from Agg which are coming from Fact2, the Fact2 table gets fired in the SQL Query.
    Now my question here is there anyway to tell BI Server that when I select Fact2 measures fire the Agg table and not the Fact2 table. The reason being the Agg and Fact2 tables are at the same level.
    But I need to keep the Agg table as it is one level higher than the Fact1 tables.
    Any pointers would be helpful.

    hi,
    you explain us your situation really good.but you forgot to tell us the most import,the measures in aggregate table and the aggregated dimensions.
    meaning,you have 7 measures aggregated in some levels of your dimensions tables?if yes,there is no possibility Bi goes anywhere else..(by choosing only these measures and the defined levels at your dimensions..)
    One more thing,if you choose a combination of your 2 fact data sources,bi goes?where???
    hope i helped...
    http://greekoraclebi.blogspot.com/

  • I Logic 9 I bought at appel store installed and want to install the new Logic X, how do I uninstall Logic 9 and have the whole program?

    I Logic 9 I bought at appel store installed and want to install the new Logic X, how do I uninstall Logic 9 and have the whole program?
    Message was edited by: davidjsousa

    Of course

  • How can I display date+time and not the point number in excell?

    Hi everyone,
    Could anybody tell me how I can save date + time to a file, so that  I can display on a diagram(excel) : date+time in (ox) and data (oy)? :
    My program sets in (ox) the point number and not the date+time....( although  date and time are written correctly in the column...)
    Any help would be great,
    Thanks,
    regards,
    Marc

    hi there,
    excel uses 01.01.1900 00:00 as the time offset, LabVIEW uses 01.01.1904 02:00, so you can't display the correct datetime in excel when you write the time as a fractional number of seconds from LabVIEW. you must format the datetime in LabVIEW to a string and write that to the column. use the "Format Date/Time String" - function and for example "%d.%m.%Y %H:%M:%S%3u" as the format string (see the functions help for more examples). you also could format your data to a string using "Format Into String" - function and write the file as a 2D string array. the decimal point you have to use depends on your system and its settings, but you can specify the decimal point in the Format string like "%.;%f" (means fractional number with point as decimal point).
    best regards
    chris 
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • How to delete one perticular message from a user and not the whole messages

    hi
    i would like to know how can i delete a single message sent by a person and not the complete list of message received by me from the same person also how can i forward a message received by me

    beesani
    Sorry. ;( You can"t delete part of a message. You can only delete the entire message from that person.
    will2b

  • Multiple selection of rows and delete the same

    hi how can we select the multiple rows in a table and delete the same.
    if i have 3 rows i have to select 2 rows and if i press the delete button the selected rows should be deleted.
    Can any one help me .
    Thanks
    Badri

    hi
    in the layout of the screen u might have dragged and dropped the table control
    double click on it u will get attributes screen in that u select MULTIPLE under Line-Selection
    under attributes tab.
    the internal table in table control must be like
    data : begin of itab occurs 0,
             empno type .......,
             empname......,
             empcity.....,
             check(1), " for tab selection"
             end of itab.
    data : itab1 like itab occurs 0 with header line.
    in the attributes screen of the table control
    pass the value ITAB-CHECK to the field W/SELECTION
    in SE51
    PBO
    Module_status_0800
    loop with control table_control_name.
    module_fill_tcontrol.
    endloop.
    PAI
    Module_user_command_0800
    loop with control table_control_name.
    module_read_tcontrol.
    endloop.
    in se38
    Module_fill_tcontrol. 
    endmodule.
    Module_read_tcontrol.
    READ TABLE itab1 INDEX control-current_line.
      IF sy-subrc EQ 0.
        MODIFY itab1 FROM itab  INDEX control-current_line.
      ELSE.
        MOVE-CORRESPONDING itab TO itab1.
        APPEND itab1.
        CLEAR itab1.
      ENDIF.
    endmodule.
    module_user_command.
    case sy-ucomm.
    WHEN 'DELE'.
          DELETE itab1 WHERE check = 'X'.
    endcase.
    endmodule.
    Regards
    Murali.M

  • Hyperlink data to specific data not the whole table

    On a table, I have a hyperlink on one of the columns.
    When I click on the data on that column, another page displays a table with all the data including the data that is clicked.
    I like to be able to click on the hyperlinked data and another page opens up and displays only the data in a table associated with the hyperlinked data. If it displays the whole database table, that will be extraneous data.
    Any ideas?

    If I understand correctly at the moment you have a table with data like this:
    Ford
    Vaxhaull
    Saab
    Fiat
    Jaguar
    Skoda
    And when you click on any of the links (car makes) you would get data like this:
    Focus
    Transit
    Corsa
    Astra
    93
    Panda
    XK8
    Octavia
    Where as what you want to see if you clicked on Ford for example is
    Focus
    Transit
    If that is correct then when you are creating your link in the first table you would need to pass either the make of car or an identifier such as an id to the other page. You can then use that value in the SQL in your new page to select the correct records
    SELECT *
    FROM cars
    WHERE make = :P1_CAR_MAKE
    Kind regards,
    Adam

  • How do you Sync your music and not erase your movies?

    I purchased my first movie from Itunes via my laptop. I synced it to my Ipod Touch along with syncing my music, and everything was fine.
    Today I wanted to sync just my music (different playlist), and I got a message that my movies would be removed from my IPT (or something to that effect). The movie took quite long to sync to the IPT, and I was in a rush, so I didn't do anything.
    How can I sync my music without having to re-sync the movie?

    go to your iphone un itunes > music and put all the music or select the song and itunes will put the songs that are not on the iphone, if it's an iphone which has been synchornized with another itunes it will ask you to erase all the songs and sync the songs you have

Maybe you are looking for

  • How can I install Photoshop CS6 32 bit after 64 bit has already been installed?

    I have installed Photoshop CS6 64 bit from a disk, but I need an additional 32 bit install for my scanner. Can anyone tell me how to do that, please?

  • Ssible to add multiple e

    Hi All, Is it possible to add multiple effects to a single video clip? For example, adding a vignette and film grain? Many Thanks

  • 6.1 search engine customization doc error

    I'm not sure who to report this to, but there seems to be an error in the documentation for the search engine customization examples. The page is at http://docs.sun.com/source/817-1831-10/agsearch.html The section in question says, "The following sam

  • Busines service reg mail adapter

    Hi I am working on scenario idoc(sender) to mail(reciever),sender idoc is aleaud,reciever is mail of format mailpackage, i am taking reciever as business service,when i am running the scenario the message is comming into xi,but it is not triggering m

  • Document windows open under Tool Palette

    I am running Photoshop 12.0.4 (CS5) on a MacBook Pro and OS 10.6.8. When I open photos in Photoshop, they always open directly underneath the Tools Palette which I have positioned at the upper left corner of my screen, just below the Options Bar. The