Sort in random order

Nice day

I just want to know how can I sort my record set in a random order. That means I want a sql like statement

Select * from customer

to produce differently to sort the results.

Kind regards

Something like:

select * from customer order by dbms_random.value;

SY.

Tags: Database

Similar Questions

  • Windows Live Mail will not sort in alphabetical order 'To' column

    In Windows Live Mail I can click on the header of column and sequence or sort by alphabetical order of most of the columns, but for some reason, it will not sort in alphabetical order the column 'To '.  Some names are grouped, but a lot of seemingly random order occurs.  How can I fix?

    Hi Scott,.

    Unfortunately, this is a known issue that has yet to be resolved.  See http://www.windowslivehelp.com/thread.aspx?threadid=7cd886b5-6726-4ef8-833d-6d19819be8ec where it is attached the answer someone of Windows Live (not only a poster regular like most of us) almost exactly the same question as you - and the answer is quite recent.

    Here's another thread in the same pregnant responded with an MVP who admits that it is a bug that has yet to be resolved.  http://www.windowslivehelp.com/thread.aspx?ThreadId=c601b584-4448-4564-9702-64065e86b1d5 although this dates back to January, apparently he still is not resolved and requires the latest version of the product as well (so that they really have trouble with this code).

    Sorry it wasn't the answer you wanted to hear, but it's something that you just need to treat before iti is resolved.  I would put a bookmark on the page of main support of these links (click back until you get there) and periodically check to see if a solution has been found (or perhaps a work around).  In fact, any questions about Windows Live Mail, you would do well to post in this forum instead of here because they are much more experienced with it, aware of the problems and solutions and quite simply have more people with greater expertise on this product if you are likely to get a better response and more quickly (or even find the solution by searching on the solution and then site forums).

    Good luck!

  • in newly improved LR6.4, when I want to import from SD card, the images are in a random order, not the order that I pulled on them.  Images are scattered.  Once imported, the images are correct. How can I get the import to be in the order that I pulled on

    in newly improved LR6.4, when I want to import from SD card, the images are in a random order, not the order that I pulled on them.  Images are scattered.  Once imported, the images are correct. How can I get the import to be in the order that I pulled on them?

    Is there a sort option near the bottom of the import screen. Have you tried different sort options that are available?

  • Random order by SQL!

    31%

    Hello

    I had posted this query in the request forum, but I guess that it really should have been posted in this forum, since its more of a question of sql. Apologies if it's against the forum rules.

    We have a camembert in Application Express which was select as

    Select null, ' 0-10' days, count (*) table

    Union

    Select null, 11-20' days, count (*) table

    Union

    Select null, 21-30 days, count (*) table

    Union

    Select null, ' > 30' days, count (*) table

    The 3d pie chart showed the slices is the right order 0-10, 11-20, 21-30, > 30 but now it shows in a random order.

    Unfortunately, the tables of Apex have a restriction in the select statement is, he should just have three values in the select statement, the first is a link (can be null), the second can be any column_name or description and the third a value such as count, sum, etc.. Now, the above query is to count the number of sales in number of days mentioned and so what happens is that it takes values as character of sort and I think that sort randomly in the graph of the apex. Now, this works very well in SQL! So I was wondering if anyone has any suggestions on how to maybe force the sort on the second column (0-10, 11-20 etc.). If I take these values as 010, 1120, 2130 3000, something like that (essentially a number) it seems to work very well, but then these see the towards the top shape of labels on the map which is not correct.

    Any suggestions on how to get the work order. I have printing since the days in the select column is a column of characters, that this problem occurs, however, with restrictions on the number of items that we have in the charts of the Apex, just wondering how do you get the work order?

    Thank you

    Ryan

    Something like that? : - (used the emp table just for reference)

    SQL > select email, substr(days,2) days, cnt
    2 starting at)
    3 select send null, to_char (1) | ' 0-10' days, cnt count (*) of the emp
    4 union
    5 Select to_char (3) null, | "21-30' days, count (*) of the emp
    6 union
    7 select to_char (4) null, | "> 30' days, count (*) of the emp
    8 union
    9 to_char (2) null, select | "11-20' days, count (*) of the emp
    10 order by 2
    11)
    12.

    E DAYS CNT
    - ----- ----------
    14 0-10
    11-20 14
    14 21 - 30
    > 30 14

    Thank you!

  • How to sort a random number without using the command by

    Hello

    How must be sorted, 5 random number without the use of order by in PLSQL
    for example.
    amount of ID
    1 2
    2 9
    3 3
    4 5
    5 7

    Edited by: sake1 1-dec-2010 08:16

    I used Altavista and found an example, how is it?

    DECLARE
    
      /* there is no built array in oracle, you must declare
      your own */
      TYPE Numarray IS TABLE OF NUMBER INDEX BY BINARY_INTEGER;
    
      /* the array of numbers - using assoc array because I can start
      with zero like traditional arrays */
      Nums Numarray;
    
      n NUMBER := 0;
    
      Temp NUMBER;
    
    BEGIN
    
      /* load up the array, put 20 random values in the array,
      in array indicies 0 to 19 */
      FOR i IN 0 .. 19
    
       LOOP
        Nums(i) :=  Round(Dbms_Random.Value(1, 1000));
      END LOOP;
    
      /* get the array size */
      n :=  Nums.Count();
    
      /* display the unsorted values - loop through the whole array and
      print out the values */
      Dbms_Output.Put_Line('unsorted:');
      FOR i IN Nums.First .. Nums.Last LOOP
        Dbms_Output.Put_Line(Nums(i));
      END LOOP;
    
      /* bubble sort - using two loops, compare each value with the one
      after it
      if the one after the current one is smaller , then
    
      switch their locations in the array, this is just like standard
      bubble sorts
      in other languages. The only real diff is the syntax.
      */
    
      FOR i IN 0 .. n - 1 LOOP
        FOR j IN 0 .. n - (i + 1) - 1 LOOP
    
          IF (Nums(j) > Nums(j + 1)) THEN
            Temp := Nums(j);
            Nums(j) :=  Nums(j + 1);
            Nums(j + 1) :=  Temp;
          END IF;
    
        END LOOP;
      END LOOP;
    
      /* display the values sorted */
      Dbms_Output.Put_Line('sorted');
      FOR i IN Nums.First .. Nums.Last LOOP
        Dbms_Output.Put_Line(Chr(9) || Nums(i));
      END LOOP;
    END;
    /*
    unsorted:
    155
    909
    795
    977
    942
    214
    105
    269
    283
    820
    108
    594
    784
    921
    856
    736
    802
    457
    951
    411
    sorted
         105
         108
         155
         214
         269
         283
         411
         457
         594
         736
         784
         795
         802
         820
         856
         909
         921
         942
         951
         977
    
    */
    

    In the code the first comment is wrong in fact, I think, this one:
    "There is no table built in oracle, you must declare your own."
    I remember there are some types of collection of the system, if I not mix with something, I remember there was a sort of like they were undocumented, so we can say legally that the comment in the code has always been right.

  • I have created a slideshow using Photos app. I wish that the images will appear in a random order (as they can in Power Point). I see no way to do it in the settings. Any advice?

    I have created a slideshow using Photos app. I wish that the images will appear randomly (as they can in Power Point), but I don't see where in the settings that allows this. Any thoughts?

    There is no option in Photos for MAc that allows you to randomly pull a slide show.

    You can create an album and have the album as an instant slide show in a random order using an Apple Script.

    See this link: Script: Shuffle Photos for an instant slide show in a random order

  • Notes: How to sort by alphabetical order

    Before IOS 9.3, Notes on the plu iPhone is not sort in alphabetical order.  I now 9.3 IOS on iPhone plu. Notes of sorts alphabetically in 2013 by Outlook. So, how can I sort it on the iPhone?

    Thank you.

    tema2

    Currently, Notes does not sort in alphabetical order. You can consider some applications than that.

  • Records and their possible content to automatically sort in alphabetical order?

    Records and their possible content to automatically sort in alphabetical order? I'm tired of having to resort each folder and it's content when I add something new.

    The add-on SortPlaces may interest you.

  • Sort in numerical order

    can someone show me how this sort in numerical order?

    only the first column in the order, but the rest of the columns follow the sorted values.

    who is?

    Try this.

  • My Windows Live Mail is sorted in alphabetical order by family name, but now, when I add a new contact, it is positioned at the top of the list instead being placed in the right place alphabetical.

    My direct mail is sorted in alphabetical order by family name, but now, when I add a new contact, it is positioned at the top of the list instead being placed in the right place alphabetical.  How to load the list of contacts to organize all contacts, including contacts, in alphabetical order by family name?

    E-mail address is removed from the privacy *.

    My direct mail is sorted in alphabetical order by family name,

    It is not clear what you mean by this statement.

    • There is an option in the contacts window in kind (names) of > name -is that what you mean?
    • Or that, when you open / switch to the contacts window, you see a list sorted by last name?
    • Or that when you click on to... or start typing in the to... box in a message composition window, you see a list ('contact selector') sorted by family name?

    Only in contact with an e-mail address will appear in the "Chooser". The list includes names in alphabetical order. For contacts with a first name and a registered name , the list will be sorted based on the preference granted to sort by in the Contacts window. Contacts with multiple email addresses will appear once for each address with the address in brackets after the name.

    Name is a special value built by WLMail contact data fields. It will consist of the first match found during the analysis of the data fields in the following order:

    1. Nickname
    2. First name + last name (in the order specified to sort by in the Contacts window)
    3. First name or last name
    4. Company
    5. E-mail address
    As you start typing in of... box, WLMail will present a list of matching entries in your contacts list. You can start typing username, first name, first name, company, e-mail address to a contact or any significant word in the Notes field for this contact. So, if you type bil, for example, the list that appears will include
    • any person whose nickname starts with Bil, e.g. Billyboy
    • any person whose first name begins with Bil, e.g. of Bilbo Baggins
    • anyone whose first name begins with Bil, for example Jim Bilko
    • everyone whose company name starts with Bil, e.g. Billingsgate Market
    • everyone with an address of e-mail from bil bil or just after a period or the ' @' symbol, for example "the bilbo at hotmail dot com" or "jim to billingsgate dot com" or "jim.bilko at hotmail dot com.
    • all categories whose name contains a word starting with bil

    If this does not solve your problem, please post your question in the forum dedicated to contacts in Windows Live Mail.

    Noel

  • 'Sort by alphabetical order' folder 'Favorites '?

    How I 'alphabetize' my folder 'Favorites '?

    Hello

    1. don't you want to sort by alphabetical order of favorites in Internet Explorer or Windows Explorer?

    Alphabetical order of favorites in Internet Explorer.

    a. launch Internet Explorer. Click on the "Favorites" menu at the top of the screen, or click the 'Favorites' button to open the Favorites bar on the left side of the window.

    b. click the 'Favorites' tab on the left side of the window if you have clicked the button 'Favorites '. If you click the 'Favorites' menu at the top of the screen, skip this step.

    c. right-click on any entry on the list of favorites, and then click "Sort by name". Your favorites are automatically in alphabetical order, with that appears first on the list of folders.

    d. click the 'Favorites' button again to close the Favorites pane if you wish.

    Alphabetical order Favorites in Windows Explorer.

    a. click on 'Start', click 'My computer' in Windows XP.

    b. navigate to "C:" and the "Documents and Settings" folder in Windows XP.

    c. browse the folder named after your Windows user name, and then find the folder 'Favorites '.

    d. right click in an open area of the folder and click on ' rearrange icons by ' and 'Name', make sure that the menu item "Ascending" is also selected.

    Note that even if this allows you to display the items in the Favorites folder in alphabetical order in Windows Explorer, it does not affect the order of display in Internet Explorer.

  • How can I cerate a table with a set of numbers saying 1 to 12 random order but no recurrence.

    How can I cerate a table with a set of numbers saying 1 to 12 random order but no recurrence.

    I know it should be easy, but my brain doesn't work right now


  • How to set the digital image to display photos in random order on a picture frame digital df730

    My digital photo frame displays photos in sequential order. How can I change in a random order?

    I solved the problem. Photo selection and then pressing the key on human beings to control hand symbol to the top of the configuration menu.

    Then, I could choose slide show with shuffle. Unfortunately the user guide does not explain this, or online information.

  • Sidebar gadgets are in random order each time I restart the application from the sidebar or I restart the computer.

    For some reason, whenever I restart the computer or I close the application of the sidebar and re - open in the start menu, my gadgets are in random order.

    I saw another thread for this on Microsoft Answers Social, but his problem was just after installation of SP2. I had SP2 for a long time and recently began to experience this.

    A moderator of Microsoft support proposed making sure that Java and Flash have been fully installed and implemented to date. I have both.

    However, due to a recent achievement in the platform of Adobe Flash (the one that allows the remote control, discovered last week), Adobe has proposed the Flash upgrade to the release candidate 7 (10.1) version. What I did. Could that be the cause? Hope not. If this is the case, then I will be happy to downshift until a solution has been found. However, the Java platform is perfectly updated and operational. And it's the 6.20 version, which is the latest public version.

    Well, I reformatted my hard drive and all restore factory settings.

    Everything worked fine... Until I installed again my Adobe CS5 Master Collection.

    So I started uninstalling the components one by one to see what worked...

    It turns out that Adobe Acrobat 9 Pro Extended (or rather the 64-bit extension him) makes the sidebar go haywire.

    Uninstalled Acrobat 9 and no problems yet. Restarted several times to make sure.

    I hope that one day I'll find an update to Acrobat who sets. Maybe I'll go post in the Adobe forums for that one.

    Whatever it is, no biggie for me - I barely use Acrobat.

  • Sort by alphabetical order of apps in app auto list.

    I can auto sort by alphabetical order of the applications in the list of apps?

    Hello

    -Are you referring to the apps in the store Windows or applications list?

    Apps in the Windows store may not be converted. The list of the apps shown in applications are classified in alphabetical order (you can't rearrange it).

    Apps downloaded on the computer and displayed on the Start Menu can be reordered. (cannot be done in alphabetical order). You will be able to group together them and move it accordingly. http://Windows.Microsoft.com/en-in/Windows-8/start-screen

    Hope this information is useful. If you have any questions, please let us know.

Maybe you are looking for