Records returned in the same order how those were inserted?

Hi,
I have a table like this, but actual table contains around 13 million records.
group_id page_id page_no
1 1 1
1 2 2
1 3 1
2 4 1
2 5 2
2 6 3
2 7 4
2 8 1
3 9 1
3 10 2
In pl/sql procedure, I have defined two cursors. First cursor fetches all distinct group_ids'. Second cursor is parametric and I pass first cursor's group_id and select all the records where group_id = first cursor's group_id.
Here is my question. Does Oracle returns records to the second cursor in the same order how those were inserted into the table earlier. If this is not guaranteed then my functionality goes wrong. Urgent please. We are using Oracle 9i.
Thanks.

This is the link where your query is answered:
"Order of rows returned by a simple select"
http://asktom.oracle.com/pls/ask/f?p=4950:8:291112116108975631::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:10294619924214,

Similar Messages

  • HT4972 How can i download a folder of photos from my computer and have them appear on my ipad in the same order as they were in on my computer

    How can I download a photo folder from my computer and have them appear on my ipad in the same order as they were on my computer

    The sort order on iOS 5+ is by the photos 'date modified' field, on iOS 4 it's the 'date taken' - so you will need to modify that field on your photos.
    Or you could consider using a third-party photo management app such as Photo Manager Pro which allows you to change the sort order within the app e.g. by date, size, type or you can drag them into your own sort order.

  • HT4236 when i transfer photos to pc they are not in the same order - how do i get them in order

    Down loading photos to Ipad4 does not place them in the same order as in my PC
    If i rename photos eg: 1,2,3,4,5, ect it still does not transfer them in order - could some one help please

    I BELIEVE it orders them in date taken order, not name order.
    You can look for a third party app that will allow you to choose/alter the sort order, or use a program to edit the properties of the photos to give them all the same date, which will then allow the iPad to default to name order. I found a free program that'll do that, but you may want to preserve the original dates on your photos so the other photos app might be yoru best bet. I'm not familiar with any but perhaps someone can recommend one to you.

  • How can I return to the same position in the calling order details form

    I am Calling a form for creating a new item from order details form, so after creating The new item I want to returned the item code to the calling form to same position in The order details form , how can I return to the same position in the order details form
    Waiting for your valuable answer .
    Best regards
    Jamil Alshaibani

    Dear Friends
    My actual problem description as the following
    I have a form for production order screen , and this form contain header and details blocks , so the user in the details will select Type Code , and he will go the next field that is Item Code Field search for specific Item Code if it is not exist he has to call the Item Definition Form by using this script
    CALL_FORM(ITEM_DEFINITION);
    Then when he finished defining the Item , and I assign the item code as the following in the :
    WHEN-BUTTON-PRESSED TRIGGER
    :GLOBAL.ITEM_CODE_VAR := :ITEM_CODE;
    DO_KEY('exit_form');
    But I don't know where to keep this assignment
    :ITEM_CODE := :GLOBAL.ITEM_CODE_VAR;
    inside the caller form in which trigger do I have to use when it return from the caller form it should assign the :GLOBAL.ITEM_CODE_VAR to the :ITEM_CODE and the cursor it should show inside the ITEM_CODE , and as I mention it does not return to the same location of The ITEM_CODE when it return from the calling form
    Waiting for your valuable answer .
    With example please .
    Best Regards
    Jamil Alshaibani

  • How can I sync my ipod shuffle so that it plays in the same order as my playlist?

    How can I sync my ipod shuffle (4th generation) so that it plays in the same order as my playlist?

    Is the playlist in your iTunes library, or is it already on the shuffle (as a playlist)?
    If you created one or more playlists for your shuffle in your iTunes library (with the songs in the desired playlist order), you should set up automatic syncing.  Here's how to do that, if you have not already...
    NOTE:  If the iTunes sidebar (along left side of window) is not visible, from the menu bar, under View, select Show Sidebar.
    Select the shuffle in the sidebar, under DEVICES.  Near the top of the window, there is a bar of buttons, starting with Summary.  Click Music next to Summary.  This is the shuffle's Music screen, where you tell iTunes how to sync songs. (Sorry if you know this already...)
    Check the box for Sync Music.  Below that, choose the option to sync Selected playlists, artists, albums, and genres.  In your case, find and checkmark those playlists you want under Playlists.  When you click Apply, the songs on those playlists and the playlists sync to the shuffle. 
    When using your shuffle, the default playlist that you are using is the All Songs list.  To play songs in order, the shuffle's power switch needs to be set to the play-in-order (middle) position.  However, if you are playing from the All Songs list, the songs play in alphabetical order.
    To play from a particular playlist that is on the shuffle, you need to use VoiceOver to switch to that playlist.  This document explains how to set up and use VoiceOver on a shuffle
    http://support.apple.com/kb/HT4322
    When playing from a particular playlist, with the power switch set to play-in-order, the songs play in playlist order.

  • How do I get the data in the CSV file to be in the same order as the form?

    When I merge my data from multiple form submissions into a csv file, the data is completely out of order, which makes it pretty much useles. How can I make it export the data in the same order? Also, the headers of each column or garbled. For example:
    Depth (mm) shows in excel as Depth__mm__aqWhxx1nhpwx*3sgoBx9UQ
    Lesion Location with check boxes: Face, Scalp, Trunk shows as each individual: Lesion_Location_1_15w4B5z9Kg2FKrkCPa6Wvg or Lesion_Location_3_15w4B5z9Kg2FKrkCPa6Wvg.
    What I want is for the data produced to be in the same order as the form and with the same headers.
    Also, I created several help texts that don't appear in the form.
    I'd be happy to upload any of the files (form template, form pdf, csv file) if there is a way to.
    I used Adobe Forms Central to create the forms in Acrobat XI Pro. I'm on a windows 7 computer.
    Thank you for your help

    Some of this is just the way it is with a PDF form created with FormsCentral. The fields get those names to ensure that they are unique, since the FormsCentral designer app does not allow yo to specify the field names directly. A fixt would be to create the form in Acrobat and you can give the fields any name you want. You can also change the field names in Acrobat after first removing the usage rights from the PDF by selecting: File > Save a Copy
    and renaming the fields to what you want. Also remove the submit button it added. You can then upload the edited PDF to FormsCentral and Distribute it. It looks as though the order of the fields in the table are alphabetical, so it you rename your fields so they will be in the order you want when arranged alphabetically (e.g., A1_Patient_ID, A2_Biopsy_Age, etc.), that might be an approach to take. Also, if this is for human patient data, check for regulatory compliance of this system. FormsCentral is specifically not HIPAA compliant as stated in the license agreement.

  • How do I count the number of records returned in the CMIS query

    How do I count the number of records returned in the query CMIS?
    SELECT COUNT(*) FROM ora:t:IDC:GlobalProfile WHERE ora:p:xRegionDefinition = \'RD_PROJETOS_EXCLUSIVOS\''}
    Euler Homero

    Hi Euler,
    interestingly enough, the reference guide for CMIS ( http://wiki.alfresco.com/wiki/CMIS_Query_Language ) that I found does not mention the COUNT function at all. On the other hand it states that: "The SELECT clause identifies which virtual columns to return in the result set. It can be either a comma-separated list of one or more queryNames of properties that are defined by queryable object types or * for all virtual columns."
    There are, however, some other posts like e.g. http://alfrescoshare.wordpress.com/2010/01/20/count-the-total-number-of-documents-in-alfresco-using-sql/ which state that they could make it working.
    Having asked in the WebCenter Portal forum, I assume that your content repository is WebCenter Content. The CMIS doc for the Content is available here: http://docs.oracle.com/cd/E23943_01/doc.1111/e15813.pdf (no COUNT there either). It does, however, mention explicitly that "CMIS queries return a Result Set where each Entry object will contain only the properties that were specified in the query.". This means your could rather investigate the Result Set. Note that there are also other means than CMIS how to get the requested result set (e.g. calling a search service directly via so-called RIDC).
    In the given context I am also interested what your use case is. OOTB CMIS in WebCenter Portal is used, for instance, in Content Presenter, where it is content rather than "parameters" what's displayed.

  • How to put material and service in the same order

    I want to put the material and service in the same order. How do it input different taxes. and also migo for one material item and other service item.

    HI,
    In your scenario create material and service PO using T-code ME21N as follows.
    1) Select PO document type, vendor and PO date
    2) PO first line item account assignment 'N' if project and give input data material code,plant,storage location,qty,rate,delivery date and tax code.
    3) PO second line item account assignment 'K', item category 'D',material short text for service, plant,storage location,material group data's are input given and press enter it will open 'Service Tab' in Item Detail Menu.
    4) In item Detail Menu - Service tab you will give Service no.,qty,gross price for the above  service material activity and service tax code in Invoice TAB and then check PO and SAVE.
    5) After getting PO approved by top management.
    6) PO first line item, you will do MIGO and PO second line item you will do ML81N service entry sheet.
    7) On the vendor bill, you will mention material document number (GRN no.) & Service sheet number and given to accounts dept.. They will book vendor bill and give payment.
    Hope, it is useful for you and solve your requirement.
    Regards,
    K.Rajendran

  • When installing Maverick on my 17" Macbook pro I got the message that my HD is damaged and can't be repaired. I now can't restart without simply repeating the attempt to install Maverick and thereby returning to the same message. How do I abort install

    When installing Maverick on my 17" Macbook pro I got the message that my HD was damaged and couldn't be repaired. (not good news!!) I now can't restart without returning  to the Maverick setup and therefore returning to the same message. How do I abort the Maverick installation so that I can try to return to the previous OS so that I can try to recover/repair the HD

    I have the same problem with my 2008 MacBook. Repair disk from disk utility says it was successful but the installer thinks it's groundhog day after a reboot. I also tried fsck -fy after booting in to a command mode and it came back clean but again the installer gives the same error message. It seems like a bit is stuck somewhere indicating my HD is bad when it isn't.
    I had the latest version of Mountain Lion and have applied every upgrade up to then without issue.
    Anyone find a solution yet without having to erase the entire disk and staring over?
    Attached is a screen shot of the error.

  • How can I get keys from Hashtable in the same order?

    Hello, everyone.
    I have a Hashtable containing key-value pairs, I need to get the keys in the same order as I use
    method put(key,value) to save the key-value pairs. But I can only find Hashtable.keys() to fetch the keys in form of Enumeration and when retrieve the keys from the Enumeration,they are not in the original order!
    The following is my code:
    Hashtable ht = new Hashtable();
    ht.put("Name","Harry Bott");
    ht.put("Gender","Male");
    ht.put("Age","25");
    String[] Items = new String[ht.size()];
    Enumeration e = ht.keys();
    int i = 0;
    while(e.hasMoreElements()) {
    Items[i++] =(String)(e.nextElement());
    The Items contains the keys but they are not in the original order.
    Does anyone know how to get the keys from a Hashtable in the same order when they're put?
    Thank you!

    yeah, another solution is to stored keys on a Collection at the same time you put them on the HashMap with its values.
    Then when ur going to retrieve objects from the Map u iterate the Collection that has the ordered keys and use them.

  • How do I return to the same folder in Mavericks?

    Since I've upgraded to Mavericks, my apps always go back to the top level when I open a document. For example, let's say I want to open a document called SAMPLE FILE.  I go to the file menu, select OPEN and then navigate thru the directory to find the file I want...
    HD > Clients > Documents > SAMPLE FILE
    Now I want to open a second file - I go to the file menu, select OPEN and instead of returning to the "Documents" folder where my SAMPLE FILE was just found - it puts me back at the top of the directory...
    HD >
    ... and I have to dig thru all the folders again to return to where I just was.
    In my previous system configurations (going back as far as I remember) - the default was to return to the same folder. Or maybe I always set the preferences that way - I honestly don't remember. But now I've searched all over for it and can't find it. Anyone know where to find it? Or has it been eliminated in Mavericks? I can't imagine Apple would do that.
    Any and all help would be appreciated. Thanks.

    Dear Friends
    My actual problem description as the following
    I have a form for production order screen , and this form contain header and details blocks , so the user in the details will select Type Code , and he will go the next field that is Item Code Field search for specific Item Code if it is not exist he has to call the Item Definition Form by using this script
    CALL_FORM(ITEM_DEFINITION);
    Then when he finished defining the Item , and I assign the item code as the following in the :
    WHEN-BUTTON-PRESSED TRIGGER
    :GLOBAL.ITEM_CODE_VAR := :ITEM_CODE;
    DO_KEY('exit_form');
    But I don't know where to keep this assignment
    :ITEM_CODE := :GLOBAL.ITEM_CODE_VAR;
    inside the caller form in which trigger do I have to use when it return from the caller form it should assign the :GLOBAL.ITEM_CODE_VAR to the :ITEM_CODE and the cursor it should show inside the ITEM_CODE , and as I mention it does not return to the same location of The ITEM_CODE when it return from the calling form
    Waiting for your valuable answer .
    With example please .
    Best Regards
    Jamil Alshaibani

  • HT3149 How do I export my iphoto album in the same order that it appears onto a flash drive or dvd?

    How do I export one of my albums in iphoto in the same order that it appears onto a flash drive or dvd?

    Remember that the FInder does not have the same sorting options that iPhoto has - no manual sorting for instance. So
    File -> Export and in the resulting dialogue note the options for Naming Files
    Album Name with Number will give you what you want.

  • How to export an album and keep images in the same order in elements 11 mac

    I made an album of my trip to Australia (lots of pictures) and changed the order of the images (not the same as shooting order) and when I export the images in the album to a folder or memorystick, the images are copied to that place but I lost the album order of the images.
    How can I prevent that, without having to renumber al 500 images separatly?
    Gr Jos

    Thanks for the tip, Michel
    It worked like a charm…
    cheers Jos
    Op 28 okt. 2013, om 18:49 heeft MichelBParis <[email protected]> het volgende geschreven:
    Re: How to export an album and keep images in the same order in elements 11 mac
    created by MichelBParis in Photoshop Elements - View the full discussion
    JosU a écrit:
    I made an album of my trip to Australia (lots of pictures) and changed the order of the images (not the same as shooting order) and when I export the images in the album to a folder or memorystick, the images are copied to that place but I lost the album order of the images.
    How can I prevent that, without having to renumber al 500 images separatly?
    Gr Jos
    The order in album is only kept in the organizer database, so the only way not to lose that order is to rename files.
    If you are using the 'export' function, select your album in custom order, select all photos and in the dialog, choose to rename with a common base name.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5794538#5794538
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5794538#5794538
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5794538#5794538. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Photoshop Elements at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How do you geT ICal to print out the To Do Items in the same order as you have sorted them on the screen

    How do you geT ICal to print out the To Do Items in the same order as you have sorted them on the screen

    Without actually seeing some of what is in the .ics attachment there's really no way to see what's going on.

  • How can I order two different calendars from iPhoto in the same order?

    How can I order two different calendars from iPhoto in the same order?

    You cannot - the "Buy Calendar" button is only available, while viewing one calendar. You can order more than one copy of the same calendar on one order, however.

Maybe you are looking for

  • Upgrade to 7.1 and Quicktime will not open

    I upgraded to QT 7.1 when I got an ipod this week and now I cannot open quicktime at all. I cannot put movies on my ipod due to this. the message I get when I open QT is: "Buffer overrn dectected! Program: C:\programfiles\quicktime\quicktimeplayer.ex

  • Calling an Oracle stored procedure using Toplink API - Please help

    Hi, We are evaluating Toplink as a possible data access layer in large service-oriented application. The ability to call db stored procedures from within business object layer is crucial for our architechture. I am trying to follow toplink applicatio

  • Can Check Number be start with zero?

    Dear all,                I knew that check number on SBO is numeric but check number of my country some number can start with zero and it effected to check number printing form. So, I'm not sure whether we can set check number to be charactor or not.

  • Role names with spaces (6.1 to 8.1)

    Hi All I'm working in an organization that has group and role names within their LDAP repository such that the group and role names contain spaces. Hence, for example, within a web.xml file lines like the following exist: <role-name>Some Role Name</r

  • INHOUSDE PRODUCTION TIME AND BASIC START DATE

    WHAT IS THE RELATION BETWEEN INHOUSE PRODUCTION TIME AND BASIC START DATES