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

Tags: Database

Similar Questions

  • What is the order of the removal of the songs to an iPod Classic syncing > somehow my laptop has started the process of synchronization without my knowledge and removed approximately 2,000 songs of my iPod classic.  How can I identify which were delete

    What is the order of the removal of the songs to an iPod Classic syncing > somehow my laptop has started the process of synchronization without my knowledge and removed approximately 2,000 songs of my iPod classic.  How can I identify which were deleted songs?  I always manually move files to prevent this.  I'm on Windows 10.

    Has no way to know that...

    If your library iTunes music fits on the storage space of 160 GB of your iPod classic, you just set to automatically sync your entire library of music.  Then, it won't matter which has been removed and which do not get deleted, because your iPod music library is the same as your library iTunes music.  And iTunes it keeps this way, every time your iPod connection (or click sync , if already connected).

    If you don't want "everything" in your iTunes library on your iPod (understandable), you can create a playlist in your iTunes library with all the songs you want on the iPod.  Then, set to automatically synchronize the playlist to iPod.  Instead of manually managing iPod, you manually manage playlist in your iTunes library.  The iPod has no need to be connected.  The next time you connect the iPod (or click sync , if already connected), iTunes will update the iPod with the same changes.  The big advantage is, if something happens like what you describe, or needs to restore iPod (erased) or even if break you your iPod (and get a new), need you a few mouse clicks to solve the problem.  Just set it up to sync the same playlist once again, which exists in your library iTunes (not only on the iPod).

    You can post back for more information about how to use automatic synchronization to do what you want more easily, go ahead.

  • What determines the order that CSS styles class and/or target rule are listed in the menu of the class of the HTML or CSS property inspector in Dreamweaver CC?

    Using Mac OS 10.10.4 and Dreamweaver 8 and Dreamweaver CC 2015 or Mac OS 10.6.8

    What determines the order that CSS styles class and/or target rule are listed in the menu of the class of the HTML or CSS property inspector in Dreamweaver CC?

    Is it possible to change the order in the drop-down list so that a frequently used class style/Targeted rule is listed first (to the top of the list)?

    I just have an attached style sheet and which shows alphabetically in the drop-down list. Maybe, if you have more than one style sheet, the styles appear in the load order of the leaves and alphabetically within each worksheet.

  • Evaluate the Expression in the order by Clause

    Hello

    I'm struggling to run after JPQL.

    Select r.firstname, r.lastname, (e.distance/e.duration) from Runner r Inner Join r.event e Order BY (e.distance/e.duration) Desc;

    Error suggests that ' (' character is unacceptable in the Order By Clause.) Here is the error.

    javax.servlet.ServletException: java.lang.IllegalArgumentException: an exception occurred while creating a query in EntityManager:
    Description of the exception: syntax error parsing the query [Select r.firstname, r.lastname, (e.distance/e.duration) of Runner r Inner Join r.event e Order BY Desc (e.distance/e.duration);], line 1, column 101: unexpected token [()].
    Inner exception: NoViableAltException (81! = [1328:1: orderByItem returns [object node]: (n = stateFieldPathExpression (a = ASC | DESC = d |) | I = IDENT (a CSA = | d = DESC |)) ;])])

    Can someone show me please how to fix it.

    Thank you
    Adam

    What version do you use? It should work in EclipseLink > 2.1.

    ---
    James: http://www.eclipselink.org

  • How to remove the Order By clause

    How can I get rid of the Order By clause in the underlying SQL query? I created a simple hierarchy, but when I use the hierarchy in the analysis and then come down, the results show multiple occurrences of each child. For some reason, I was able to reduce the number of occurrences of each child by adding a saved filter.

    I was expecting this:

    Expected.jpg

    Instead, I got this:

    Actual.jpg

    The generated physical query looks like this:

    SET VARIABLE QUERY_SRC_CD = "report"; SELECT s_0, s_1, s_2, s_3, s_4 s_5, (FROM s_6)

    SELECT

    s_0 0,.

    CAST (NULL AS VARCHAR s_1 (1)).

    "Registration - College". «Dimensions of the inscription '.» "' Exercise ' s_2,.

    'All the colleges' s_3,.

    IDOF ("registration - College". «Hierarchies of the inscription '.» "College". ". ("' S_4 all Colleges").

    MOUNT s_5 (NULL AS DOUBLE),

    "Registration - College". "" Counties of schooling. "" Full-time student "s_6

    "REGISTRATION - College".

    UNION ALL

    SELECT

    1 s_0

    "Registration - College". «Dimensions of the inscription '.» "" Name of College "s_1,.

    "Registration - College". «Dimensions of the inscription '.» "' Exercise ' s_2,.

    'All the colleges' s_3,.

    IDOF ("registration - College". «Hierarchies of the inscription '.» "College". ". ("' S_4 all Colleges").

    IDOF ("registration - College". «Hierarchies of the inscription '.» "College". ". ("' S_5 College ').

    "Registration - College". "" Counties of schooling. "" Full-time student "s_6

    "REGISTRATION - College".

    WHERE

    ("Registration - College". «Dimensions of the inscription '.» ("' Exercise ' IN ('201213')) AND (IDOF ("registration - College". «Hierarchies of the inscription '.» "College". ". (("' Colleges ') (1))

    ) djm ORDER OF 1, 3 ASC NULLS LAST, 4 ASC NULLS FIRST, 5 ASC NULLS FIRST, 2 ASC NULLS FIRST, NULLS FIRST CSA 6

    EXTRACT FIRST 10000000 LINES ONLY

    HI mbengue,.

    Check the report you are running any column presentation sorted in the user interface (in which case the order by clause will creep into generated sqls Physics). Also, I think that its worth it to check the settings of the hierarchy you have configured and if the installation program for the calculation of the measured column (number of students in this case), has been done correctly.

    Kind regards

    Arko

  • Purpose of the ORDER BY clause in the analytic function Min Max

    I was always using analytical functions like Min Max without ORDER BY clause. But today I used with the ORDER BY clause. The results are very different. I would like to know the purpose of the ORDER BY clause in Min, Max and analogues of analytical functions.

    user10566312 wrote:
    I was always using analytical functions like Min Max without ORDER BY clause. But today I used with the ORDER BY clause. The results are very different. I would like to know the purpose of the ORDER BY clause in Min, Max and analogues of analytical functions.

    It is a good point that many developers are not so aware. As far as I understand it the way it works.

    Some analytical functions do not need an order by or windowing clause (SUM, COUNT, MIN, etc.). If there is no specified window, then the full score is the window.
    As soon as you add a command also add you a windowing clause. This window has the default value of 'rank ofrows between unbounded preceding and current_row. So as soon as you add an order by clause, you get a sliding window.

    Documentation: http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions001.htm

    windowing_clause
    ...
    You cannot specify this clause unless you specified the order_by_clause. Window limits defined by the clause RANGE you can not specify only a single expression to the > order_by_clause. Please refer to 'Restrictions on the ORDER BY Clause'.

    example of

    with testdata as (select 10 numval, level lv from dual connect by level < 10)
    select lv, numval, sum(numval) over () sum1, sum(numval) over (order by lv) sum2
    from testdata;
    
    LV NUMVAL SUM1 SUM2
    -- ------ ---- ----
     1     10   90   10
     2     10   90   20
     3     10   90   30
     4     10   90   40
     5     10   90   50
     6     10   90   60
     7     10   90   70
     8     10   90   80
     9     10   90   90 
    

    Published by: Sven w. on 25 Sep 2012 16:57 - default behavior has been corrected. Thanks to Chris

  • Condition in the order by clause?

    Hello

    my version of db is,
         Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production 
        
    Im having a query like this,
        select a,b,c,d,sum(e) from f group by a,b,c,d order by a,b,c,d
        
    Now if the value of one is 1 I want the result of the following query
        select a,b,c,d,sum(e) from f group by a,b,c,d order by b,a,c,d
        
    The only change between the two queries above are sorted by the clause.

    How to get there?

    Good help will be appreciated.

    Concerning
    Sankar MN

    Published by: SankarMCA on October 5, 2010 04:51

    Hello

    You can use CASE expressions in the ORDER BY clause.
    For example:

    ORDER BY  CASE
                  WHEN  a  = 1  THEN  b
                              ELSE  c
              END
    ,         CASE
                  WHEN  a = 1  THEN  c
                              ELSE  b
              END
    ,         d
    
  • How does the order by clause in oracle 10G?

    Hi This is my table called Master.I want to order by sno. so I run the below mentioned query.

    SNO DESC STIME, ETIME CCODE ADD SID

    11 11 11 1 10 s11

    1 1 s1 09:00 12:00 10

    2 2 s2 06:00 07:00 9

    3        3      S3        9:00       23:00                         0

    SELECT * FROM MASTER BY SNO

    SNO DESC STIME, ETIME CCODE ADD SID

    1 1 s1 09:00 12:00 10

    11      11         s11        11             1              10

    2         2         s2           6:00        7:00           9

    3         3         S3           09:00     23:00                        0

    but I had bad results. Help kindly me.i can't understand how the order by clause is fetching the record.

    Hello

    Most probably because that SNO is not digital, but a tank.

    If it contains a number onlly, try

    SELECT * FROM MASTER BY TO_NUMBER (SNO);

  • What controls the order of the types in the list of paette type

    TS2012

    I have a bunch of custom in my file of sequence types, and when I go to the range of types and look at the types associated with my file in sequence, they are in the 'disorder' which is not very useful for me - I would have preferred that they are in a specific order which groups them according to the category of tasks they do.   Basically, I want to be able to manaully specify the order of the types.  Worse still, as I modify some types, their order and after the editing changes they get inserted somewhere else in the middle of the list (not very useful).

    The sequence that the user interface of the editor does not provide a way to 'Capture' a type and drag around manually update the order, or be able to sort the headers of columns for the type palette.  (Heck - which would be too convenient here).

    So... try to reverse this engineer and get there myself.

    There seems to be 2 different pieces of possible orders of the information for the types that I can find.

    (1) order that they exist in the file in sequence if I save it in XML format and begin reading from the top down.

    (2) the specific type typelistordernum

    I have a case where, if I open the pallet type in the sequence editor, I see

    TypeA

    TypeB

    TypeC

    Typed

    TypeE

    If I open the file in the sequence in the text editor, I see

    Typed (typelistordernum 49)

    TypeE (typelistordernum 50)

    TypeC (typelistordernum 51)

    TypeB (typelistordernum 52)

    TypeA (typelistordernum 29)

    The order in the movie file, or the order number of type list seems to dictate the order that they appear in the range of types of the sequence editor.

    I checked that each type in the example are ONLY used in this file a sequence - not shared in any other type of sequence pallets or files of type.

    If I write code to load the sequence file, obtain a reference to it, it cast to a propertyObjectFile and retrieve the TypeUsageList for this file, I get an ordered list that corresponds to the order of typelistordernum.  I can call the MoveType against this TypeUsageList method to reorder the items in the list type and save the file in the sequence.  The next time I open the file in the sequence, the tool retrieves the TypeUsageList for the file of the sequence in question and the order and numbers are the same that I saved the last time, but the order types as seen from the range of types of Sequence Editor is no different (my sorting tool did not help to this point of view).

    All the suggestions here about what is happening, and how can I do feel how the order types is displayed in the palette of type sequence editor, and what I can do to get my types of "sort" I like.

    (1) Yes, you can reorganize the types according to the type via drag and drop. At least since the 2012 version of TS this works reliably.

    (2) the typelistordernum defines the order types are displayed in the view of types.

    (3) you can sort the columns in the view types.

    Maybe you accidentally sorted one of the columns in the view of types and the sequence editor is forgetting that for what you see is actually the order sorted, based on one of the columns.

    I'm sure that drag - move is disabled when you have a sort column so this explains very well what you see. Check your headers to sort for this point of view and make sure that you do not have up and down arrows.

    Hope this helps,

    -Doug

  • What is the order of evaluation of Page elements

    I wonder what the order of execution of the page point assignments are in the page rendering process.
    Sequence (+ region), the Type of items, more skilled checking dependencies?
    I couldn't find anything here, or looked at with the wrong keywords.

    I just need to know, what reliable hypothesis on the dependencies between page elements?

    Which is visible in the APEX code? A pointer to that would be OK.

    Thank you very much
    Thomas

    Hello

    If you have a process 'Automated row fetch', then APEX will fill the session state of all elements on the page where source type = "Column DB" when the process is run.

    All other types of source page point are filled in the order that the elements of the page are rendered.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

    Published by: Patrick Wolf on November 15, 2012 13:47

  • What is the order of operations

    Where can I find the order of operations that are evaluated by the Oracle database? I mean, for example, for a query like this:

    Select an element, rank on (partition of order in...) r

    from t1, t2

    where t1.x = t2.x

    and t2.other_something = 'value '.

    order by 1;

    We can say that: "order by" going to last, "rank" works on lines after that the paintings are "United" and "selected". So in a sense, there is an order of operations. I understand that the actual order of operations when execution can be different if optimizer concludes on an equivalent, alternative execution plan. But what is a sort of operations of op "basic" order Oracle follows "to understand" the request even before trying to understand the alternative form. Is there such a list of order of operations?

    Thank you

    Hello

    946279 wrote:

    Where can I find the order of operations that are evaluated by the Oracle database? I mean, for example, for a query like this:

    Select an element, rank on (partition of order in...) r

    from t1, t2

    where t1.x = t2.x

    and t2.other_something = 'value '.

    order by 1;

    We can say that: "order by" going to last, "rank" works on lines after that the paintings are "United" and "selected". So in a sense, there is an order of operations. I understand that the actual order of operations when execution can be different if optimizer concludes on an equivalent, alternative execution plan. But what is a sort of operations of op "basic" order Oracle follows "to understand" the request even before trying to understand the alternative form. Is there such a list of operations?

    Thank you

    No, I've never seen any kind of official list like that, no doubt because, as you say, the optimizer does not follow these rules; the optimizer has done what he thinks is the fastest way to get the results that you specified.

    It may be useful to imagine things in the following order:

    1. Subqueries
    2. Joins (including the join in the WHERE clause conditions)
    3. PIVOT and UNPIVOT
    4. START WITH and CONNECT BY clauses
    5. WHERE clause
    6. Clause GROUP BY and aggregate functions
    7. HAVING clause
    8. Analytic functions (for example, RANK)
    9. ORDER BY clause

    Again, this has the same relationship to what actaully goes according to the drawings of atoms you see in science books have to the real atoms.  It can help you to remember (for example) that an analytic function (n ° 8 in the list above) may rely on an aggregate function (#6), but not vice versa.

    Yet once, SQL is not a procedural language, and the optimizer does not actually follow a rule of procedure like this.

  • Adding more than one host ESX and the upgrade at the same time.  What is the order of preference of the operations here?

    We are budgeting for more licenses and hardware for 2014 and want to do immediately in January.  I am trying to decide what is the best order of operations for adding two vmware hosts additional to our current installation of vsphere and also upgrade our vsphere / esx 4.1 u3 for the latest and best.

    We have 3 Dell PowerEdge R710 running ESX 4.1 U3.  In this vmware cluster, there is a vcenter server 4.1 U3 virtual machine handle this.  The three servers are about 90% memory used so we add 2 additional servers.  Probably the Dell PowerEdge r.620 since we get up 2 in the space of a 710.  Storage is on a san EMC NX4 NFS which will become too but not yet, let's just deal with the vmware part.

    When adding additional r.620 2, should I install ESX 4.1 on them and join them to the existing cluster and THEN pass vcenter and each one esx?  I ask precisely because 90% of use on 3 current servers, I need 2 other servers to support the update operations take place.  They would be able to repel vmotioned vm while each host receives an upgrade at the same time.

    So which is the best way to go about adding of the hosts and the upgrade?  Would I add as 4.1, then they would be available as targets vmotion and so I have room to start the hosts one upgrade at a time?

    If I update vcenter to the latest version, it is comparable backwards and can manage the 4.1 hosts, but also hosts 5.x?  I guess version 5.5 is the last one I would get from VMWare?  It is right of ESXi, then, how is this ESX ESXi 5.5 4.1 upgrade?  How much storage space do I need for ESXi 5.5, as I'm dechatoiement out of these r.620 Dell and need to know what hard drive to put in.

    The steps that you must follow

    -Updated vCenter Server

    -Upgrade of the ESX hosts (because we do a updating of the material we will install 5.5 on our new guests and add them to the cluster and then dismantle our existing)

    -Upgrade VMWare tools

    -Update data warehouses

    ESXi 5.5 has these storage requirements:

    • Installing ESXi 5.5 requires a boot device is at least 1 GB in size. When booting from a local disk or SAN/LUN iSCSI, a 5.2 GB drive is necessary to allow for the creation of the VMFS volume and a scratch 4 GB partition on the boot device. If a smaller drive or logical unit number is used, the installation program attempts to allocate a region scratching on a separate local disk. If a local drive is not found, the scratch partition (/ scratch) is located on the disk virtual ESXi host, linked to the/tmp/scratch. You can reconfigure /scratch to use another drive or logical unit number. For best performance and memory optimization, VMware recommends that you leave no /scratch on the ESXi host ramdisk.
    • To reconfigure / scratch, see Configure the Scratch Partition of vSphere Client vSphere Installation and Installation Guide.
    • Because of the sensitivity of the I/O devices, USB and SD, the installation program does not create a partition scratch on these devices. Therefore, there is no tangible benefits to the use of the great features of USB/SD that ESXi uses only the first 1 GB. When installing on USB or SD, tent Setup devices to allocate a region scratching on a local disk or the data store. If no disk is local or data store, /scratch is placed on the virtual disk. You must reconfigure /scratch to use a persistent data store after the installation.
    • In Auto deploy facilities, Setup attempts to allocate a region scratching on a local disk or the data store. If no local disk or data store is found /scratch is placed on the virtual disk. You must reconfigure /scratch to use a persistent data store after the installation.
    • For environments that start from a San or use Auto Deploy, it is not necessary to assign a separate logical unit number for each ESXi host. You can co-locate areas scrape for several hosts ESXi on a single LUN. The number of hosts assigned to a single LUN must balance the size of the LUN and behavior I/O virtual machines.
  • What is the order to turn off the constraints and index

    Hi, I need to make some out of constraints and indexes on tables to load quite a date in them. I know that I can just drop them and recreate later. But is it feasible to figure who forced and in what order must be do disable or unusable before a load and after the load that is to say. without dropping to preserve? R before P data loading, and then P before R like I think that controls can jump in evertytime and are quite safe to deal with. But I did not carefully think about more, maybe you have some scripts that say exactly what should be the order to turn off the coast and later on this subject.

    Thank you!

    Hello

    946279 wrote:

    Hi, I need to make some out of constraints and indexes on tables to load quite a date in them. I know that I can just drop them and recreate later. But is it feasible to figure who forced and in what order must be do disable or unusable before a load and after the load that is to say. without dropping to preserve? R before P data loading, and then P before R like I think that controls can jump in evertytime and are quite safe to deal with. But I did not carefully think about more, maybe you have some scripts that say exactly what should be the order to turn off the coast and later on this subject.

    Thank you!

    That's right: disable foreign key constraints before disabling the primary (or Unique) key constraint correspondent.  When you reactivate them, re - enable the constraint of primary (or Unique) key before the corresponding foreign key constraints.

    Aside from that, the order should not issue.

  • What is the order of the film?

    I have all my pictures from 2011 in a single folder.  The film has been in the order that the photos were taken, except that now the photos of 12/24 appear forward, rather than backward.  The metadata says correctly they were taken on 24/12/2011.

    That is what it is?

    Chuck

    Even as the order of the grid, that you can edit in the toolbar.

  • process of execution of the order by clause

    What is the process of execution of the order clause in the sql statement and how it will affect the performance of the query.

    Siddharth Singh says:
    What is the process of execution of the order clause in the sql statement

    Depends on. First of all, that you mean "alrogithmically, how Oracle data products ordered"? There are a number of different approaches. Data can be ordered as you pick up sequentially from an index. Or it can be explicitly materialized and sorted.

    and how it will affect the performance of the query.

    Depends on. There could be no impact because it relies on the index to classify the data and index is the most effective path independently of the presence of an ORDER BY. Or it could require a huge amount of time to materialize and sort several GB of data.

    Justin

Maybe you are looking for