What is the point of making ORDER BY dbms_random.value

SELECT rownum AS id,
       round(dbms_random.normal*1000) AS val1,
       100+round(ln(rownum/3.25+2)) AS val2,
       100+round(ln(rownum/3.25+2)) AS val3,
       dbms_random.string('p',250) AS pad
FROM dual
CONNECT BY level <= 1000
ORDER BY dbms_random.value;
Please explain what ORDER BY dbms_random.value is done?
Kind regards.
Greg

It will be distributed randomly the order of the rows in the output

Tags: Database

Similar Questions

  • What's the point of having several columns in the ORDER BY clause?

    DB version: 10 gr 2

    When you use the ORDER BY clause, the lines are always sorted by the first column in the ORDER BY clause. So, what's the point of having several columns in the ORDER BY clause (I always see this in production codes)?

    For the below SQLs' schema SCOTT, result sets are always classified according to the first column ename. When I added use asc and desc of employment, does not change the result set.
    SQL> select * from emp order by ename;
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
    ---------- ---------- --------- ---------- --------- ---------- ---------- ----------
          7876 ADAMS      CLERK           7788 23-MAY-87       1100                    20
          7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30
          7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-81       2450                    20
          7902 FORD       ANALYST         7566 03-DEC-81       3000                    20
          7900 JAMES      CLERK           7698 03-DEC-81        950                    30
          7566 JONES      MANAGER         7839 02-APR-81       2975                    20
          7839 KING       PRESIDENT            17-NOV-81       5000                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30
          7934 MILLER     CLERK           7782 23-JAN-82       1300                    20
          7788 SCOTT      ANALYST         7566 19-APR-87       3000                    20
          7369 SMITH      CLERK           7902 17-DEC-80        800                    20
          7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30
          7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30
    
    14 rows selected.
    
    SQL> select * from emp order by ename, job;
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
    ---------- ---------- --------- ---------- --------- ---------- ---------- ----------
          7876 ADAMS      CLERK           7788 23-MAY-87       1100                    20
          7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30
          7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-81       2450                    20
          7902 FORD       ANALYST         7566 03-DEC-81       3000                    20
          7900 JAMES      CLERK           7698 03-DEC-81        950                    30
          7566 JONES      MANAGER         7839 02-APR-81       2975                    20
          7839 KING       PRESIDENT            17-NOV-81       5000                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30
          7934 MILLER     CLERK           7782 23-JAN-82       1300                    20
          7788 SCOTT      ANALYST         7566 19-APR-87       3000                    20
          7369 SMITH      CLERK           7902 17-DEC-80        800                    20
          7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30
          7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30
    
    14 rows selected.
    
    SQL>  select * from emp order by ename, job desc;
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
    ---------- ---------- --------- ---------- --------- ---------- ---------- ----------
          7876 ADAMS      CLERK           7788 23-MAY-87       1100                    20
          7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30
          7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-81       2450                    20
          7902 FORD       ANALYST         7566 03-DEC-81       3000                    20
          7900 JAMES      CLERK           7698 03-DEC-81        950                    30
          7566 JONES      MANAGER         7839 02-APR-81       2975                    20
          7839 KING       PRESIDENT            17-NOV-81       5000                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30
          7934 MILLER     CLERK           7782 23-JAN-82       1300                    20
          7788 SCOTT      ANALYST         7566 19-APR-87       3000                    20
          7369 SMITH      CLERK           7902 17-DEC-80        800                    20
          7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30
          7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30
    
    14 rows selected.

    Search in this example, you will see the difference

    SQL> create table test_order (name varchar2(10), surname varchar2(10), age number);
    
    Table created.
    
    SQL> insert into test_order values('Kamran','Agayev',26);
    
    1 row created.
    
    SQL> insert into test_order values('Kamran','Taghiyev',26);
    
    1 row created.
    
    SQL> insert into test_order values('John','Kevin',23);
    
    1 row created.
    
    SQL> select * from test_order;
    
    NAME       SURNAME           AGE
    ---------- ---------- ----------
    Kamran     Agayev             26
    Kamran     Taghiyev           26
    John       Kevin              23
    
    SQL> select * from test_order
      2  order by age;
    
    NAME       SURNAME           AGE
    ---------- ---------- ----------
    John       Kevin              23
    Kamran     Agayev             26
    Kamran     Taghiyev           26
    
    SQL> select * from test_order
      2  order by age asc, surname desc;
    
    NAME       SURNAME           AGE
    ---------- ---------- ----------
    John       Kevin              23
    Kamran     Taghiyev           26
    Kamran     Agayev             26
    
    SQL>
    

    When in the second query, I sorted out only for age, you saw it there two 26 years old Keita, there was first Agayev, then Taghiyev. But if I want to get the family names in descending order when there are two very old person, then I will add the second column in the order by clause

    - - - - - - - - - - - - - - - - - - - - -
    Kamran Agayev a. (10g OCP)
    http://kamranagayev.WordPress.com

  • don't play BBC radio, so what's the point of having firefox?

    Summer loving Fox, but what's the point if she will not play radio 4 iplayer etc.? Unfortunately he returned to explore!

    Have you checked that the right version of the Flash plugin is used?

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.
  • What is the point number (spare part) protects cable for ILÇE-7RM2?

    What is the point number (spare part) protects cable for ILÇE-7RM2?

    I'm looking for this part:

    http://Helpguide.Sony.NET/ILC/1520/v1/de/contents/image/b_cableprotector.PNG

    Thank you

    Michael

    I discovered, that it is the part number:

    Cable protector: X-2591-933-2

  • What is the point of the current program of recovery iPhone?

    I just got the latest offering from resumption of Apple advertising up to €475 off a new iPhone and frankly think it's an absolute and misleading marketing effluent pot... I can sell my current for more iPhone double Apple are rewarding it and wonder what's the point?

    Come on Apple... It's false, at least give us the same jumps that you give the operators?

    You forget something important here: Apple offers up to 475 Euros. Each phone is evaluated by Apple, and then the price is established.

  • What is the point of groups on bike g

    Hi all, I am new to android this is my first ever smart phone and also of new forums etc, so please be gentle with me. And sorry if this is in the wrong section/place?

    For the last two days, I searched for an app (free of course) which will help me to multi/Group text and messaging multi/group.

    I love my motorcycle G 2nd gen, but these missing tools, contact base are a real let down for me because I need and what I understand, have to manually enter the details to say around time of 20 contacts each wished to text or e-mail, is a good PITA bread, and not always with success.

    This should have been included even on stock android sytems. Even my old Samsung E2600 offered these features!

    Anyway, I've created a group of my 'People' file and cannot do something with it, so what's the point of 'grouping '?

    BTW, I told you that I love my bike and two of my friends came out and I bought one after playing with mine.

    There is an application called 'Contact group' which will give this feature for you. I've used this in the past and it seems to work pretty well. There are other applications like 'DW Contacts and Dialer' which will also give you these features, but you don't have to abandon your application of those default to get the features using this application.

    I'm sure that there are other applications available, but these two are the ones I've personally used and I am prepared to recommend. I hope this helps.

  • Microsoft Solitaire Collection daily challenges - what's the point?

    I downloaded the Microsoft Solitaire Collection, including the part of the daily challenges where the player collects coins and gets badges as price.

    I wonder what is the point of collecting the coins and get badges? I mean, isn't it? Is it the objective in its entirety?

    Hi Jumpin,

    Badges are digital rewards you earn by playing Microsoft Solitaire Collection daily challenges. I suggest you to see the following links for more information on the awards and badges.
    http://rewards.Xbox.com
    http://www.Xbox.com/en-us/live/rewards
    http://support.Xbox.com/en-us/Xbox-360/Xbox-Live/member-loyalty-points

    If you still want to know about premiums and deposits, then I suggest you to the post office.
    http://forums.Xbox.com/xbox_forums/xbox_rewards_support/f/29/t/1599947.aspx

    I hope this helps. Let us know if you have other problems with Windows in the future.

  • What is the point of this program?

    I just installed it, began to watch the tutorials on it and then work with her to know that it is basically useless in the end.

    I followed the other threads here that State that it doesn't sort capabilities to export your work so that you can develop.

    It's misleading because the exported page.html and boilberplate.css even for something as simple as a layout with 2 breakpoints and only 4 empty div is very imperfect.

    Basically, the exported html and css are not working and I still show the 1620px and the breaking point, even if my screen is 1920px.

    To go back and fix the flawed css makes the process of any model useless.

    I'm missing something here... What is the point of this program?

    So far all I can do is create useless templates which can not go further.

    My attachments show what I see inside reflow and what do I get when I open page.html.

    01.gif02.gif

    I think it is just a demonstration for MAX 2013.

    I played with this for over a year, but there is no update to fix major bugs or requested features.

    Their twitter account is silent for a long time. Not sure if the dev team still exists.

    As you can the proven, this program is not ready for production.

    Adobe Edge reflow anyone? -

  • What is the point of accuracy and scale to Type Number?

    Version: 11.2

    What is the point of having the precision and the SCALE type number? If you create the column with just NUMBER ie.without
    specify the precision or scale, you can enter numbers with a precision and scale.


    SQL> select * From v$version where rownum < 2;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    
    
    SQL> create table t1 (col1 number);
    
    Table created.
    
    SQL> insert into t1 values (223.9939394);
    
    1 row created.
    
    SQL> insert into t1 values (88.228384);
    
    1 row created.
    
    SQL> insert into t1 values (9.34);
    
    1 row created.
    
    SQL> insert into t1 values (000.00);
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> select * from t1;
    
          COL1
    ----------
    223.993939
     88.228384
          9.34
             0
    Do you already have a scenario where a numeric column should store only values with a fixed precision and scale?

    Omega-3 wrote:
    Version: 11.2

    What is the point of having the precision and the SCALE type number? If you create the column with just NUMBER ie.without
    specify the precision or scale, you can enter numbers with a precision and scale.

    SQL> select * From v$version where rownum < 2;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    
    SQL> create table t1 (col1 number);
    
    Table created.
    
    SQL> insert into t1 values (223.9939394);
    
    1 row created.
    
    SQL> insert into t1 values (88.228384);
    
    1 row created.
    
    SQL> insert into t1 values (9.34);
    
    1 row created.
    
    SQL> insert into t1 values (000.00);
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> select * from t1;
    
    COL1
    ----------
    223.993939
    88.228384
    9.34
    0
    

    Do you already have a scenario where a numeric column should store only values with a fixed precision and scale?

    Plenty of needs of the company for specific details and scales.

    An age can the persons required to be stored as whole not more 3-digit numbers.
    A sum of money may have to be stored with no more than 2 decimal places of accuracy for example the books of GB Pence or US Dollars and Cents
    A unit of length may need to be stored in meters with 2 decimals of centimetres
    A size may have to be stored with a decimal for half sizes
    etc.
    etc.

    Yes, you can create simply as a generic NUMBER data type, but their design with precision and scale can provide additional information on the limitations for the stored values, especially for things like tools that can use the specified precision and scale to determine how to display the automatically (default) values of reporting.

    If you start to question "what is the point?" then you may as well say what's the point of having a NUMBER data type when we can store numbers in a VARCHAR2 data type? or what's the point of having a DATE data type, when we can stored dates as VARCHAR2 data type? etc.

    No need to ask such a question because there is almost always a point to these things (and if not what they get deprecated in future versions).

  • What is the point of XML to format log alerts in 11g?

    DB version: 11.1.0.6.0
    OS: RHEL 5

    What is the point of having XML format log alerts in 11G?


    When I tried to open in Internet Explorer
    Only one top level element is allowed in an XML document. Error processing resource 'file:///D:/Work/FILES/log.xm...
    <msg time='2011-01-27T19:42:53.484+08:00' org_id='oracle' comp_id='rdbms'
    I got an error of similair with FireFox. How did the newspaper alert XML file used in the diagnosis?

    It is used by the ADRCI command line utility:

    http://download.Oracle.com/docs/CD/B28359_01/server.111/b28319/adrci.htm#BGBBBBEA

  • What is the point of type conversion of forms, rather than just flattening at required resolution?

    OK, this may seem a stupid question. Lets say that I see a three-pronged in Photoshop. The printer asks that the drawings are conducted on a 300 dpi resolution.

    What is the point in the conversion of any type of forms before the registration or embed fonts when I can flatten just my design at 300 dpi as a whole? Don't go printing do anyway... flatten just my design? Or they print type at a resolution higher than the portions of the frame of the drawing or model? He mistook me for too long. I hope someone can clarify this. Thank you

    300 ppi measurement is used for the midtones (aka filtered) images. Text is often not tracked so this resolution does not apply. You want a higher resolution (obtained by keeping the text in vector format) to keep a clear text.

    When sending art to a printer or to the bottom of the page-assembly line, it is ideal to save in PDF format that it will retain the direct type of Photoshop as a material of vector fonts.

  • What is the point of having the function of the cloning in custom events?

    What is the point of having the function of the cloning in custom events? I do this, but never understood why lol

    The EventDispatcher call to clone the event when you return an event with dispatchEvent (event). It is also why you should implement it correctly (copy all properties), otherwise the listeners who handle the redispatched event will receive an event with incorrect values.

  • What is the point in the mac calendar?

    What the point of having a mac offline calendar when you can just as easily add to your icloud we and have it sync? I'm trying to familiarize themselves with the calendars right now, so advice welcome!

    Not everyone uses iCloud; not everyone needs to sync their calendars with other devices; Some want or need different calendars on different computers, etc.

    Use what makes sense in your user folder.

  • WHAT DO THE POINTS GREEN AND ORANGE BY A FOLDER?

    What do the Green and orange points by a folder?  that is the photo folder

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-pictures/why-do-my-folders-have-green-dots/0b8feb4a-E904-4C84-9475-1e7625abf111

  • What is the difference between making a site inactive and end provider, provider dating site?

    Hello

    There are 3 ways to make a provider site unavailable for use in R12?

    Accounts payable Manager > search provider, and then click address book

    (1) click the button remove

    2) click on "Update" and change the status to "inactive."

    3) click on 'Manage the Sites' and fixed the date passed in 'inactive Date '.

    What is the difference between them and what are the advantages and disadvantages of each.

    Kind regards

    Mindy

    Pros to delete: If there were human errors while accessing a supplier Site and if they are to be discarded then you can use this option. By example, bad provider Siite imported sources via interfaces or data conversion.

    Cons to delete: Auditors will be unhappy because the record is no more.

    Pros from inactive: Consider a scenario in which a provider of on-site audit has arrived and the audit found non-compliance with the operations of the Site to a specific provider. In such a case, that your company has decided to not not to create one more (or business) transactions with the Site Supplier up to what the provider meets the policies agreed contractual and accounts gives a green signal. And this is where you use 'inactive' for simply inactivate the vendor Site and then reactivate after passing a second check.

    Cons of idle: You not save the date to which it has been inactivated. However the database captures the "last_update_date" column (which is not useful unless you have activated the check feature).

    Pros inactive Date: Consider a scenario in which your provider had a warehouse in Auckland. But now they have closed the warehouse and moved to China. In this case, you always want to maintain previous transactions in the system, as well as from the point of view of the audit after inactivating you add some comments here. This is where the functionality of 'inactive date' will be very convenient in which you show clearly in the system when the site became inactive (and the reason for this action).

    I hope this helps.

    Concerning

    Kamal Khan

    www.AclNZ.com

Maybe you are looking for

  • How can I remove Message of diagnosis?

    So I was checking my storage on my mac pro OS Yosemite 10.10.5. you wonder what to eat my disk space. I found this file called Diagnostic Message in (Macintosh HD/private/var/log) with a value of 25 GB and my questions are: 1, what is this Message of

  • Graphics and satellite L500 - 19 X Open GL

    I just started using my L500 and am especially pleased with its performance. The only thing that decreasing it is its graphics performance. The intensive program more graphically that I use requires OpenGL building. The computer has trouble to view t

  • How can I recover program that disables my firewall runs pseudo-device scan and then invites me but "xp total security 2011?

    After a heated discussion online and behind the messages on facebook with an aggressive person, my computer said "your computer is potentially unprotected" and "firewall disabled. Then a window opened and directed a "scan" telling me I had 29 infecti

  • Problems audio HDMI - Aspire V Nitro

    Hi all: I have a problem with my laptop Aspire V Nitro. I have a Sony amp that I use to listen to the radio and play music. I have 2 speakers and a subwoofer connected to the amplifier. When I play the radio on the amplifier or when I connect an HDMI

  • Debug build hangs at the splash screen after Update Beta 4

    Since the update of the fall of November, debug builds Dev Alpha hang at the splash screen. By release notes, on the basis of known issues: "AIR debugger cannot display the IP host dialog box when a debugging session is initiated. This can cause appl