Why are inserted rows not shown in order?

Hi y'all,
I'm doing some experimenting. I've set up a table with 3 columns: decimal digit, binary digit, and the difference in length between the former two. Then I wrote a small anonymous PL/SQL block with a single FOR loop. It takes in cycles every integer between 1 and 10000, and computes its binary value, the length difference, and then inserts the three (dec_num, bin_num, diff) into the table. However, the records are not in order! The first row after the run is number 1298! The number 1 is computed in the row number 303.
When I change the code to only compute the numbers from 1 to 1000, everything is okay, but when I increase the upper border back to 10000, this weird ordering takes place. I understand there's some optimization and paralelism going on. But how do I steer it? It's really bothersome... TIA.
code snippet:
for dec_num in 1..10000 LOOP
bin_num := dec2bin(dec_num);
diff := length(bin_num) - length(to_char(dec_num));
insert into correlation values (dec_num, bin_num, diff);
end loop;

Hello, thanks for the prompt answers, I don't request returning the rows in order, but would welcome having them inserted in order, in the first place! :) Of course, when I use ORDER BY to view the results, all is well. Is it really the only way?
Edited by: user5539369 on Nov 12, 2009 12:57 PM

Similar Messages

  • Why are my Contacts NOT in alpha order (neither First nor Last order works)?

    It doesn't matter what order I specify in Preferences, the Contacts are not in alphabetical order. This is crazy! What am I doing wrong?
    It has to be something very simple and it's right in front of me, but I just can't see what the problem is.
    Thanks.
    Matt

    It could be that you have spurious characters in the filenames? When you do a Manual sort a hidden file is created in the folder you are working in .BridgeSort this is just a text file with the list/order of the files. It might be worth having a look at the file and see if anything strange is happening.

  • Why Are Shipping Charges Not Shown Under SHIPPING on Pacing Slip

    Why are the shipping charges included in total amount charged, but not under shipping on the Packing Slip?

    Why are the shipping charges included in total amount charged, but not under shipping on the Packing Slip?

  • Why are my movies not shown in iTunes

    Hi,
    I have just bought a Mac Mini and have updated all the software etc to the latest versions.
    The problem I am having is that in the Leopard Movie folder I have all of my TV Shows and Films but the do not show up in the movie tab in iTunes, if i want it to be displayed there I have to copy the file to my iTunes folder, copying the film and making the Movie folder in finder pointless.
    I also have a PC with iTunes and it allows me to point to any folder that i have movie content in, even on different drives and it is all shown in iTunes, surely there is a way to do this on a Mac?
    Otherwise what's the point of having separate media folders in Leopard if itunes does not scan them for content?
    All help greatly appreciated.

    What do you mean? Please be more specific.

  • Why are some apps not shown as installed?

    Are apps that were purchased prior to App Store, in my case iWork apps, not going to show as installed on the MAS? Is it only apps installed from MAS that will appear as installed?
    Olly

    Are apps that were purchased prior to App Store, in my case iWork apps, not going to show as installed on the MAS?
    No, they do not.
    Is it only apps installed from MAS that will appear as installed?
    Yes, that is correct.

  • Why are my playlists not in the order I wanted on the shuffle?  Shuffle is not on.  I don't want to hear Werewolves of London right after Domine ad adjuvandam.

    I have created my playlists. They are scrambled on the iPod.  I see the Music list is where the scrambling occurs. How do I get that off?

    “the EU is considered one country for warranty purposes“
    Not the case at all whilst there are harmonized minimum standards governing guarantees, warrantees remain national as these vary (Add to) minimum legal protection.
    Some how you need to get your phone back to Switzerland.

  • Why are holiday for Spain shown in Catalan in calendar and not SPANISH? How can I change this?

    Why are holidays for Spain shown in Catalan in calendar and not SPANISH? How can I change this?

    Try subscribing to a different calendar.
    Calendar Holidays
    Calendar Holidays (2)

  • Why are animated gifs not displaying animations in the preview?

    Why are animated gifs not displaying animations in the preview?
    My coworkers and I are not seeing a animation in the preview pane in Adobe Bridge CS6 even when clicking the play button in the preview window. However, we do see a graphic of the first frame and one person sees 1 frame when clicking play and one other frame and then the animation stops, however, that is not the complete animation.
    I'm using Windows 7 32 bit
    My coworkers are using a mac.
    One coworker has apple OS Mountain Lion with a Intel Quad-Core Xeon – 64 bit system.
    Is this fixable or in the works as a patch? Otherwise we have to open these docs in a browser in order to view them properly.

    I've just come to the realization that some animated gifs do play fine and others do not. A coworker of mine suggests that if it's an animation made via Adobe Photoshop, it'll work in bridge but will not if it's made using something else.

  • Disc Burner. Why are some files not readable or writeable?

    Hello,
    I am trying to backup my friends computer files on a beige G3 (233 MHz). I am burning about 6 DVDs of AIF music files. Most of the files are about 30 - 40 Megs in size. Often I receive error messages on particular files that read:
    "The operation cannot be completed because some data cannot be read or written.
    (Error code - 36)"
    Followed by the choices: "Stop" or "Continue".
    I have a bad feeling that my startup disk is too small but I am not sure.
    Most of the files work fine. However some of the files cause disc burner to not be able to use them in the disc image before I burn. Why would this be?
    Here are the specifications:
    Computer: beige G3 with two hard drives (one SCSI and one ATA hard drive) and a Pioneer DVR-110D DVD writer which is Apple supported (Apple system profiler indicates Apple supported on this DVD writer). My blank DVD disks are Sony Vermatim DVD-R (1 - 16x speed support). Although I think my beige G3 only writes them at about 2 or 4x.
    I am using OS 10.1.5. My startup disk which has OS 10.1.5 in it is a 4 GIG SCSI disk. Is this big enough for a startup disk (for creating 4.5 GIG DVDs)? My files are on the second hard drive which is a 40 GIG ATA disk.
    I have a bad feeling that my OSX startup drive is too small for disk burning - it is only 4 GIGs in total and OSX Disc burner (Disc copy) is first making a disk image on my startup volume before it burns it. Perhaps that disk image is too large for the startup volume. Is there any way I could ask OSX to put this disk image on the second larger hard drive instead (not the startup drive?).
    Here is my process (I hope I am doing this right - I am new at this):
    1. I first insert a blank DVD-R
    2. A message pops up asking my if I would like to create a blank disc image for this disk (I think this is the typical Disk Copy utility window. I say "yes" and give it a name and choose the "DVD-R or DVD-RAM" option. (I am not sure if there are other important settings to choose here or better settings to use but I guessed the other options that seemed obvious. A blank disk image is created with an icon that looks like a DVD disk.
    3. Then I drag my chosen files to this blank disc image. It takes about 30 minutes to copy over. Thats when I receive the error message that some files couldn't be "read or written". The other files work fine but it would be nice if they all worked.
    Why would some files not be readable or writeable?
    4. Then I choose file/burn in the top menu and the DVD is created. This takes another 20 - 30 minutes. At the very end of the process another message pops up saying:
    "Sorry the operation could not be completed because an unexpected error occured (error code -28)" Followed by an "OK" button.
    However all the files that made it onto the final DVD are fine - its just that its not all of the ones I originally chose in the first step when dragging to create the disk image.
    Am I doing this the right way?
    Why are some files not "readable or writeable" as it indicates in the error message?
    Is my 4 GIG startup disk too small for this? or are the music files possibly corrupt? or could there be some other possible problem?
    Thanks

    To follow up, I have some good news. After following your advice Kappy, it now works very well Thanks! Instead of using the 4 GIG volume for the OS, I am now using an 8 GIG partition on an 80 GIG drive. So now the OS has some room to operate. No disk errors occured on my first DVD
    Now there was one problem. The second DVD burned gave me an error. I am not sure why but I am going to guess that because I had to installed the OS onto an 8 GIG partition maybe the OS needs to be rebooted in between disk burns because although 8 GIGs is certainly greater than the 4 GIGs I gave it last time, it still isn't a lot of space - maybe just enough to do one DVD at a time. Thats only a guess. So I rebooted to see if that clears the system out ready for the next DVD and I am trying to burn the second DVD again. If I remember I will report back. In any case, yes, this seems to be working. I hope this second DVD burns well too.
    Thanks Kappy

  • Why are sent emails not stored in the Sent Items folder in iOS7

    Why are sent emails not stored in the Sent Items folder?

    Thanks, Matt.
    I'm now starting to notice the emails that don't come in order are all posted from sites that use multiple platforms to send the same message; email, Facebook, Twitter, etc. so maybe that has something to do with it. I'm thinking the hold up is possibly at their end.

  • Why does front row not have simple organization?

    I currently have a hard drive hooked into my macmini which is hooked up to my TV. On my hard drive I have over 1000 movies, all purchased through iTunes. However when I use front row and i goto the movie section, I have to scroll through every movie to get to the one I want. There's no way to scroll by letter, only one by one. This is horrible and takes forever. Can apple do an update that makes the right button on the apple remote for scrolling letter by letter. For example, you click the right button to goto movies starting with B, C, D, E, F, etc. Then the down button for one by one scrolling. Also, why does front row not have genres? AppleTV does. Why not incorporate that into front row? Think, Apple, Think.

    You can have sub-folders in the Movies folder and arrange your movies alphabetically that way.
    But if you want to alert Apple to your idea, then use this link:
    Where to send product feedback to Apple:
    http://www.apple.com/feedback/

  • Why are the iPhotos not listed in the finder?

    why are the iPhotos not listed in the finder?

    There are many, many ways to access your files in iPhoto:   You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Command-Click for selecting multiple pics.
    (Note the above illustration is not a Finder Window. It's the dialogue you get when you go File -> Open)
    You can access the Library from the New Message Window in Mail:
    There's a similar option in Outlook and many, many other apps.  If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    If you want to access the files with iPhoto not running:
    For users of 10.6 and later:  You can download a free Services component from MacOSXAutomation  which will give you access to the iPhoto Library from your Services Menu.
    Using the Services Preference Pane you can even create a keyboard shortcut for it.
    For Users of 10.4 and 10.5 Create a Media Browser using Automator (takes about 10 seconds) or use this free utility Karelia iMedia Browser
    Other options include:
    Drag and Drop: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    File -> Export: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    Show File:  a. On iPhoto 09 and earlier:  Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.    3.b.
    b: On iPhoto 11 and later: Select one of the affected photos in the iPhoto Window and go File -> Reveal in Finder -> Original. A Finder window will pop open with the file already selected.

  • Why are my songs not completing play?

    why are my songs not completing play? plays half a song then on to the next

    Welcome to the Apple Community.
    Try restarting iTunes.

  • Why are my contacts not showing up in my iMessage on my macbook pro?

    Why are my contacts not showing up in my imessage on my macbook pro?

    open messages. go to messages>preferences>accounts. select your icloud account from the left sidebar, and uncheck 'enable this account' then recheck 'enable this account'
    you should also be using icloud to sync your contacts. sytem preferences>icloud. check the 'contacts' box

  • Why are my audiobooks not going through home sharing?

    why are my audiobooks not going through for home sharing.

    According to this thread (https://discussions.apple.com/thread/3525692), it looks like you are not able to share audiobooks through Home Sharing:
    You can share MP3, AIFF, WAV, AAC, and radio station links, but you cannot share iTunes Store Audio Books, Audible spoken word content, or QuickTime sound files.
    You can leave iTunes feedback here: http://www.apple.com/feedback/itunesapp.html

Maybe you are looking for

  • How do I get pop-ups to open in the same screen Firefox is on?

    I have 3 monitors at work for the 10-15 programs/windows I need open all day. The problem is that my normal work requires a pop-up from our company's ticketing system, hosted on a website. That pop-up always occurs on the upper left-hand corner of th

  • How to adjust region position in Arrange window?

    It must be simple, but I can't find how to locate the left edge (or length) of a region accurately short of zooming in and dragging it. I'm constantly zooming in for precision, then back out for view. I'm looking for an indicator like the one that sh

  • Browser stuck on Services and Settings screen

    The browser for my Curve 8330 is stuck on the Services and Settings screen. The menu does not include either "go to" or "close" to get me out. And repeated removals of the battery have not solved the problem. This has been a recurring problem, meanin

  • How to interface ADAM 4060 in Labview 7.0 ?

    I got difficulties in interfacing ADAM 4060 with Labview 7.0. I have tested the device using Advantech ADAM Utility software and it working properly. So, its not hardware error or failure. However, when I want to interface it using Labview, I couldn'

  • Accessing WEB-INF

    Hello, As a follow-up to a previous thread (http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.webservices&item=3198&utag=) Can a java class web service figure out where the WEB-INF directory is located? I am loo