Looking for right outer join help

Hello

Can anyone help me re - write the query using right below outer join (join ansi) instead of using the (+) symbol.

Select cd.sku_id waitm,

Decode (cl.invn_lock_code, NULL, 'OH', cl.invn_lock_code) WLOCN,

Sum (CD.actl_qty) WQOH

cd, a.case_lock cl, a.case_hdr ch, a.item_master im a.case_dtl

where cd.case_nbr = ch.case_nbr

and cl.case_nbr (+) = ch.case_nbr

and cd.sku_id = im.sku_id

and ch.stat_code < = '64'

Cd.sku_id group,

IM.sku_brcd,

Decode (cl.invn_lock_code, NULL, 'OH', cl.invn_lock_code)

order of cd.sku_id

Kind regards

Gannu

Maybe something like this:

of a.case_dtl cd

Join a.case_hdr ch on (cd.case_nbr = ch.case_nbr)

Join a.item_master im on (cd.sku_id = im.sku_id)

join a.case_lock cl left (cl.case_nbr = ch.case_nbr)

where ch.stat_code<=>

I know you asked for right outer join, but I tend to write like that.  You can certainly change if you wish.

Tags: Database

Similar Questions

  • Full table on the right outer join scan

    Hello, I need help. Here's my query-

    SELECT / * + first_rows (100) * /.
    a.custom_gr_id, a.custom_gr_name AS customgroupname,
    a.custom_gr_type_id AS customtypeid, b.workspace_id, b.NAME, a.itime,
    a.is_shared_org AS est_partagee
    OF custom_group_pa one
    RIGHT OUTER JOIN
    account_workspace_pa b ON (a.workspace_id = b.workspace_id
    AND (a.delete_flag IS NULL or a.delete_flag <>1)
    AND a.owner_id = '123')
    WHERE b.workspace_id <>- 9999
    AND b.workspace_type_id = 1
    AND b.delete_flag = 0
    AND EXISTS (SELECT 1
    Of account_workspace_type c
    WHERE b.workspace_type_id = c.workspace_type_id)
    ITime to ORDER BY DESC;

    Account_workspace_pa almost 1 500 483 lines and custom_group_pa had 200 000 lines and account_workspace_type is a very small table of 10 lines.

    I always get a full on table account_workspace_pa table scan, while I have clues about workspace_id AND I index on workspace_id, workspace_type_id and delete_flag. The request is expected to produce less than 500 lines.

    Here's the plan I make-

    Plan
    COUNCIL of the SELECT STATEMENT: FIRST_ROWSCost: 3 931 bytes: 405 108 cardinality: 7 502
    8 SORTING ORDER BY ORDER BY a.ITIME DESCCost: 3 931 bytes: 405 108 cardinality: 7 502
    7 LOOPS IMBRIQUEES EXTERNAL (ACCOUNT_WORKSPACE_TYPE at ACCOUNT_WORKSPACE_PA) in CUSTOM_GROUP_PACost: 3 930 bytes: 405 108 cardinality: 7 502
    3 LOOPS IMBRIQUEES ACCOUNT_WORKSPACE_TYPE to ACCOUNT_WORKSPACE_PACost: 2 280 bytes: 210 056 cardinality: 7 502
    1 INDEX UNIQUE INDEX (SINGLE) ADR_DEV SCAN. SYS_C0025442 aliased as cCost: cardinality of 0 bytes: 6: 1
    TABLE 2 ACCESS FULL TABLE ADR_DEV. ACCOUNT_WORKSPACE_PA alias ADR_DEV_DATA Tablespaceb.WORKSPACE_ID b! = - 9999, b.WORKSPACE_TYPE_ID = 1 b.DELETE_FLAG = 0Cost: 2 280 bytes: 165 044 cardinality: 7 502
    VIEW 6 (Embedded SQL) cost: 0 bytes: 26 cardinality: 1
    TABLE 5 ACCESS BY INDEX ROWID TABLE ADR_DEV. Aliased as one on ADR_DEV_DATA TablespaceCost CUSTOM_GROUP_PA: 04:00 cardinality: 1
    4 INDEX RANGE SCAN INDEX ADR_DEV. IDX_CG_WSID_DF_OWID aliased as aa.delete_flag (+) is NULL, a.delete_flag (+)! = 1, a.owner_id (+) = '123', a.workspace_id (+) = b.workspace_idCost: cardinality 3: 1


    If someone can advise, why I always make a full table scan on table account_workspace_pa and what I can do to have a systematic index scan?

    Thank you.

    If you need all the lines then that would be a clue do for you?

    You don't necessarily need a full table scan. But if you have need of all ranks, it is certainly more effective to do a full scan (read through all of the blocks table in bulk, once) rather than navigate throu an index and jump from block to block to block (probably one at a time, probably having to hit most of them more than once until the work is done) after the ROWID as they occur in the index.

    Also, fully entered null will not appear in the index, so (depending on your data, NOT NULL constraints, etc.) it may be possible that navigate through an index will cause lines to be ignored.

    I think you look at that and see a problem, but the answer is: it's really the best way to accomplish what you're asking.

  • Left Outer Join help...

    Hello world

    I'm still trying to learn the SQL, and I can not specifically with the left outer join.  I normally join tables using equijoin, but I don't get the right data set returns, and designed with the help of a left or right outer join would solve the problem...

    Here is my SQL that works properly with 1 left outer join.  I build the slow query in the SQL following, you will see where I see the error.  I don't expect you to understand the data and the columns, I'm trying to join, I think the problems I encounter are related to syntax, and I hope that you can find where are my syntax errors.

    Select

    s.Name as "Pseudonym,"

    SV.view_name as "name of the view.

    s_view. Name

    Of

    s s_screen,

    s_screen_view sv

    outer join left s_view

    WE (sv.view_name = s_view.name)

    where

    SV.screen_id = ' 1-866 A - 1X3LU' and

    s.ROW_ID = sv.screen_id and

    s.repository_id = ' 866 A-1-1"and

    s_view.repository_id = ' A-1-1 866 ";

    Here is the SQL code where I encounter the following error...

    Error:

    ORA-00904: "SV". "" View_name ": invalid identifier

    00904, 00000 - '% s: invalid identifier '.

    * Cause:

    * Action:

    Error on line: column 14: 7

    Problematic SQL:

    Select

    s.Name as "Pseudonym,"

    SV.view_name as "name of the view.

    s_view. Name,

    s_applet. Name as Applet

    -b.SID like "name of the cmdlet.

    Of

    s s_screen,

    s_screen_view sv,

    wti s_view_wtmpl_it

    outer join left s_view

    WE (sv.view_name = s_view.name)

    outer join left s_applet

    WE (wti.name = s_applet.name)

    where

    SV.screen_id = ' 1-866 A - 1X3LU' and

    s.ROW_ID = sv.screen_id and

    s.repository_id = ' 866 A-1-1"and

    s_view.repository_id = ' A-1-1 866 ";

    Thanks in advance for your help.

    Chris

    > ORA-00904: "S_VIEW_WEB_TMPL." "" ROW_ID ": invalid identifier

    I don't see this table in your FROM clause.

  • He had to know the right outer join using...

    He had to know the right outer join using...

    For example: first query left outer join for the emp table: SELECT EMPNO, ENAME, D.DEPTNO FROM EMP E, Department D WHERE the E.DEPTNO = D.DEPTNO)

    Second query left outer join for the Dept table: SELECT EMPNO, ENAME, D.DEPTNO FROM EMP E, Department D WHERE the D.DEPTNO = E.DEPTNO)

    In the example above I just Exchange where condition condition to get an outer join of two table with a left outer join itself. Wat is use right outer join, instead, I can swap the status of table name for the result. Please suggest...

    Hello

    chan001 wrote:

    He had to know the right outer join using...

    For example: first query left outer join for the emp table: SELECT EMPNO, ENAME, D.DEPTNO FROM EMP E, Department D WHERE the E.DEPTNO = D.DEPTNO)

    Second query left outer join for the Dept table: SELECT EMPNO, ENAME, D.DEPTNO FROM EMP E, Department D WHERE the D.DEPTNO = E.DEPTNO)

    In the example above I just Exchange where condition condition to get an outer join of two table with a left outer join itself. Wat is use right outer join, instead, I can swap the status of table name for the result. Please suggest...

    The two examples above use the old syntax outer join of Oracle. (I guess there should be a sign inside the parentheses, e.g.. +)

    ...  WHERE E.DEPTNO = D.DEPTNO (+)

    )

    The LEFT OUTER JOIN and RIGHT OUTER JOIN terms apply only to the ANSI join syntax, e. g.

    .

    .. FROM EMP E

    DEPT LEFT OUTER JOIN D ON E.DEPTNO = D.DEPTNO

    As Blushadow said above, there's no real point in having LEFT OUTER JOIN and RIGHT OUTER JOIN;  What you can do with one (or a combination of both) can be done with the other.  Most people use LEFT OUTER JOIN systematically and never use RIGHT OUTER JOIN.

    There are situations where using a combination of the two would mean a little less striking, but only a little less and this kind of situation is very common, and one may wonder if the somewhat shorter code is more specific.  I suggest that forget you RIGHT OUTER JOIN.

  • Reg: Diff between Right Join and Right Outer Join

    Dear all,

    Kindly help me to find the difference between the two queries below where the results are the same.

    SELECT * FROM emp RIGHT JOIN dept WE emp.deptno = dept.deptno;


    SELECT * FROM emp RIGHT OUTER JOIN dept WE emp.deptno = dept.deptno;

    Thank you

    Both are same

  • Right outer join

    There are four tables:

    Family
    Parent
    Child
    Grandchild

    Ideally, they have all documents, such as

    F1 - P1 - C1 - G1
    F2 - P2 - C2 - G2
    F3 - P3 - C3 - G3

    But sometimes,.

    F1 - P1 - C1 - null
    F2 - P2 - null - null
    F3 - P3 - null - null

    For the case of the latter, maybe I need to right outer join. If it's between two tables, the right outer join is easier. But among the four tables, inner family join parent, child of the outer join, then the big kid outer join. Maybe even this has been done? If an outer join in this case is not relevant, what other options are available?


    Thank you

    (ORACLE 11.2)

    Hello

    As Salomon, said

    FROM  p  LEFT  OUTER JOIN c
    

    means exactly the same thing that

    FROM  c  RIGHT OUTER JOIN p
    

    Everything you do with LEFT OUTER JOIN you could also do with RIGHT OUTER JOIN, and vice versa. If either one did not exist, you may do whatever you want with the other. In practice, it's just what's happening: most of the people always use LEFT OUTER JOIN and never use a RIGHT OUTER JOIN.

    You can have a series of outer joins cascading. If I understand your problem, a particular family may or may not have parents that belongs to him. If there are relatives, then you want to show the family with his parents to realteaed, but if there are no parents, so you want to show the family anyway. Similarly, you want to show parents whether or not they have children, and the children or not all my grandchildren are related to them. In general, which is written like this:

    ...
    FROM           family          f
    LEFT OUTER JOIN      parent          p    ON  p.family_id  = f.family_id
    LEFT OUTER JOIN      child          c    ON  c.parent_id  = p.parent_id
    LEFT OUTER JOIN      grandchild  g       ON  g.child_id   = c.child_id
    

    You can have a situation where (for example) a child is related to a family, but the child has no parent? In this case, you can still use LEFT OUTER JOIN, but join conditions would be different.

  • left and right outer join

    Hi gurus,

    Left outer join:

    -------------------

    Select * from A LEFT OUTER JOIN B on A.col = B.col;

    by definition, a left outer join brings the rows that match the join condition and lines not corresponding to table A.

    My question here is "corresponding to B and no matching rows in A" is that nothing, but... SELECT * FROM A;

    can someone pls clarity...

    Thank you.

    Imagine that you had:

    TableA

    COLUMN1 COLUMN2

    'A'                1

    'B'                2

    'C'                3

    TABLEB

    COLUMN1 COLUMN2

    'A'                 'X1'

    'A'                 'X2'

    'B'                 'Y'

    'D'                 'Z'

    SELECT * FROM TABLEA;

    A 1

    B 2

    C 3

    Now, if you want to join (first column is either in table A or B, (deuxieme from tableA, third table B)

    SELECT * FROM TABLEA A JOIN TABLEB B ON (A.COLUMN1 = B.COLUMN1)

    A 1 X 1

    A 1 X 2

    B 2 Y

    SELECT * FROM TABLE LEFT B EXTERNAL ON (A.COLUMN1 = B.COLUMN1) JOIN TABLE

    A 1 X 1

    A 1 X 2

    B 2 Y

    C 3 {null}

    SELECT * FROM TABLE A TABLE RIGHT OUTER JOIN B (A.COLUMN1 = B.COLUMN1)

    A 1 X 1

    A 1 X 2

    B 2 Y

    D {null} Z

    SELECT * FROM TABLE A TABLE FULL OUTER JOIN B (A.COLUMN1 = B.COLUMN1)

    A 1 X 1

    A 1 X 2

    B 2 Y

    C 3 {null}

    D {null} Z

    HTH

  • Difference between Inner join and right outer join...

    Which is precisely the difference between an Inner join and right outer join...

    JOIN INTERNAL:-to return all rows from the two tables where there is a football game. That is to say. the table resulting from all the rows and columns will have values.

    AND

    RIGHT OUTER JOIN:-Returns all rows in the second table, even if there is no match in the first table.

  • need help for an outer join query

    Hi friends...
    I have oracle 10g...
    I have a question which involve is joining three tables...

    the query is as follows:
    SELECT DISTINCT MU.MKT_ID                  "PAR ID",
                       MU.MKT_ID                  "ROOT ID",
                     MSU.SPEC_ID                "ID",
                   SU.SPEC_DESC                "DESC",
               SU.SPEC_CD          "SPEC CD"
    
                  FROM IPOADM_BATCH.MKT_UV1        MU,
                         IPOADM_BATCH.MKT_SPEC_UV1   MSU,
                 IPOADM_BATCH.SPEC_UV1       SU
    
                   WHERE MSU.MKT_ID  = MU.MKT_ID
               AND MSU.SPEC_ID = SU.SPEC_ID
             AND SU.SPEC_GRP_OR_CMPSTN_CD = 'C';
    in my front end application has some delete operations that removes specific data of the IPOADM_BATCH. MKT_SPEC_UV1 due to which the above query is nor fetch all rows.
    the relationship between the tables is clearly from the above query...

    I have the data in IPOADM_BATCH. MKT_UV1 and IPOADM_BATCH. Table of SPEC_UV1 after the delete operation

    now, I want the query above to retrieve data from IPOADM_BATCH. MKT_UV1 with small changes to the above query even if there is no data in IPOADM_BATCH. MKT_SPEC_UV1.

    I thought that if I use an outer join I can get it, but here I have to join three tables-join condition is based on the table that doesn't have a data...


    so please help me guys how can I change the query to get my desired out put...

    Hello

    There are several different things you could mean by it.

    Here's how to join the tables to get one of them:

    SELECT DISTINCT  mu.mkt_id                  "PAR ID",
                     mu.mkt_id                  "ROOT ID",
                     msu.spec_id                "ID",
                     su.spec_desc               "DESC",
                     su.spec_cd                   "SPEC CD"
    FROM           ipoadm_batch.mkt_uv1        mu
    LEFT OUTER JOIN      ipoadm_batch.mkt_spec_uv1   msu  ON   msu.mkt_id               = mu.mkt_id
    LEFT OUTER JOIN  ipoadm_batch.spec_uv1       su       ON   msu.spec_id              = su.spec_id
                                                  AND  su.spec_grp_or_cmpstn_cd = 'C'
    ;
    

    If it does not matter what it is that you want, and then after a small example of data (CREATE TABLE and INSERT, only relevant columns instructions) for all the tables and the results desired from these data.
    Highlight a few places where the above querry is the production of incorrect results of your sample data and explains how to get the correct results in these places.

  • Looking for right on the download page of Toshiba Satellite A50

    Hello
    I'm trying to find out what is the right model I have I don't think my model of laptop on the Toshiba site

    I have Satellite - SA50-101 model PSA 50F - 03 T 03 LAR
    I want to get all the download link for this laptop, because I lost the CD.
    you cam me a mail [email protected], [email protected], [email protected]
    Thank you

    Hello

    I put t know what is the problem. Area download the Toshiba site, you can find the driver.
    http://EU.computers.Toshiba-Europe.com/cgi-bin/ToshibaCSG/download_drivers_bios.jsp?service=EU

    There, you have to choose the right laptop. In your case, it s Satellite A50.
    Then select the right operating system and you will get all the drivers available.

    It s simply.

  • LOOK for iOs as3 Sceling help

    IM using Air for iOs on the new flash Cs5.5 and im wondering if anyone knows the code as3 for scaling an element with the fingers moving them in and out of the object selected.

    Multitouch.inputMode = MultitouchInputMode.GESTURE;

    stage.addEventListener (TransformGestureEvent.GESTURE_ZOOM, f);

    function f(event:TransformGestureEvent):void {}

    mc.scaleX * = event.scaleX;

    mc.scaleY * = event.scaleY;

    }

  • Looking for PDF files and help online

    Hello

    I have create a RoboHelp 8 online help system, which also contains a PDF of some user Guides. Ideally I'd like the user to be able to search for information in the HTML pages and PDFs (written and compiled using FrameMaker 9). Is there a way that it is possible?

    Thank you

    On 'Hat' and 'that' - disable the substring search.

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

  • Wireless printer when ENVY, PC keeps looking for wireless signal. Help!

    After installation of the software of printer ENVY, it prints fine wireless. But, when I turn off the printer my computers appear to continue to pick up the wireless signal. Arrow and circle continue. A PC XP and Vista 2.

    Can someone help me please?  Having the dizziness of all this spinning. When I turn printer on it stops turning.

    Help!

    Hey, Hey,.

    Thank you very much!!! You'll never know how much time I spent on this issue and I do not either.

    I had to enter the printer software to access the scan mode, but works fine on my 2 computers and my husband.

    We're going on a trip tomorrow and I just started thinking about our trip turns all the time on computer.

    Thanks again, Vicki:

  • [8i] need help with full outer join combined with a cross join...

    I can't understand how to combine a full outer join with a different type of join... is it possible?

    Here are some create table and insert for examples of database:
    CREATE TABLE     my_tab1
    (     record_id     NUMBER     NOT NULL     
    ,     workstation     VARCHAR2(4)
    ,     my_value     NUMBER
         CONSTRAINT my_tab1_pk PRIMARY KEY (record_id)
    );
    
    INSERT INTO     my_tab1
    VALUES(1,'ABCD',10);
    INSERT INTO     my_tab1
    VALUES(2,'ABCD',15);
    INSERT INTO     my_tab1
    VALUES(3,'ABCD',5);
    INSERT INTO     my_tab1
    VALUES(4,'A123',5);
    INSERT INTO     my_tab1
    VALUES(5,'A123',10);
    INSERT INTO     my_tab1
    VALUES(6,'A123',20);
    INSERT INTO     my_tab1
    VALUES(7,'????',5);
    
    
    CREATE TABLE     my_tab2
    (     workstation     VARCHAR2(4)
    ,     wkstn_name     VARCHAR2(20)
         CONSTRAINT my_tab2_pk PRIMARY KEY (workstation)
    );
    
    INSERT INTO     my_tab2
    VALUES('ABCD','WKSTN 1');
    INSERT INTO     my_tab2
    VALUES('A123','WKSTN 2');
    INSERT INTO     my_tab2
    VALUES('B456','WKSTN 3');
    
    CREATE TABLE     my_tab3
    (     my_nbr1     NUMBER
    ,     my_nbr2     NUMBER
    );
    
    INSERT INTO     my_tab3
    VALUES(1,2);
    INSERT INTO     my_tab3
    VALUES(2,3);
    INSERT INTO     my_tab3
    VALUES(3,4);
    And, the results that I want to get:
    workstation     sum(my_value)     wkstn_name     my_nbr1     my_nbr2
    ---------------------------------------------------------------
    ABCD          30          WKSTN 1          1     2
    ABCD          30          WKSTN 1          2     3
    ABCD          30          WKSTN 1          3     4
    A123          35          WKSTN 2          1     2
    A123          35          WKSTN 2          2     3
    A123          35          WKSTN 2          3     4
    B456          0          WKSTN 3          1     2
    B456          0          WKSTN 3          2     3
    B456          0          WKSTN 3          3     4
    ????          5          NULL          1     2
    ????          5          NULL          2     3
    ????          5          NULL          3     4
    I tried a number of different things, google my problem and no luck yet...
    SELECT     t1.workstation
    ,     SUM(t1.my_value)
    ,     t2.wkstn_name
    ,     t3.my_nbr1
    ,     t3.my_nbr2
    FROM     my_tab1 t1
    ,     my_tab2 t2
    ,     my_tab3 t3
    ...
    So, what I want, it's a full outer join of t1 and t2 on workstation and a cross join of one with the t3. I wonder if I can't find examples of it online because it is not possible...

    Note: I'm stuck dealing with Oracle 8i

    Thank you!!

    Hello

    The query I posted yesterday is a little more complex that it should be.
    My_tab2.workstation is unique, there is no reason to make a separate subquery as mt1. We can join my_tab1 to my_tab2 and get the SUM in a subquery.

    SELECT       foj.workstation
    ,       foj.sum_my_value
    ,       foj.wkstn_name
    ,       mt3.my_nbr1
    ,       mt3.my_nbr2
    FROM       (     -- Begin in-line view foj for full outer join
              SELECT        mt1.workstation
              ,        SUM (mt1.my_value)     AS sum_my_value
              ,        mt2.wkstn_name
              FROM        my_tab1   mt1
              ,        my_tab2   mt2
              WHERE        mt1.workstation     = mt2.workstation (+)
              GROUP BY   mt1.workstation
              ,        mt2.wkstn_name
                            --
                    UNION ALL
                            --
              SELECT      workstation
              ,      0      AS sum_my_value
              ,      wkstn_name
              FROM      my_tab2
              WHERE      workstation     NOT IN (     -- Begin NOT IN sub-query
                                               SELECT      workstation
                                       FROM      my_tab1
                                       WHERE      workstation     IS NOT NULL
                                     )     -- End NOT IN sub-query
           ) foj     -- End in-line view foj for full outer join
    ,       my_tab3  mt3
    ORDER BY  foj.wkstn_name
    ,       foj.workstation
    ,       mt3.my_nbr1
    ,       mt3.my_nbr2
    ;
    

    Thanks for posting the CREATE TABLE and INSERT statements, and very clear expected results!

    user11033437 wrote:
    ... So, what I want, it's a full outer join of t1 and t2 on workstation and a cross join of one with the t3.

    She, exactly!
    The trickiest part is when and how get SUM (my_value). You could address the question of exactly what my_tab3 must be attached to a cross that's exactly what should look like the result set of the full outer join between my_tab1 and my_tab2 to. To do this, take your desired results, remove columns that do not come from the outer join complete and delete duplicate rows. You will get:

    workstation     sum(my_value)     wkstn_name
    -----------     -------------   ----------
    ABCD          30          WKSTN 1
    A123          35          WKSTN 2
    B456          0          WKSTN 3
    ????          5          NULL          
    

    So the heart of the problem is how to get these results of my_tab1 and my_tab2, which is done in the subquery FOJ above.

    I tried to use auto-documenté in my code names. I hope you can understand.
    I could spend hours explaining the different parts of this query more in detail, but I don't know that I would lose some of that time, explain things that you already understand. If you want an explanation of the specific element (s), let me know.

  • My Confusion of outer join

    Oracle 10g

    I have three below queries that use the outer join syntax.

    All three queries return exactly the same results


    (a)
    SELECT TA.ID TA
         , TB.ID TB
      FROM TA
         , TB
     WHERE TA.ID = TB.ID(+);
    (b)
    SELECT TA.ID TA
         , TB.ID TB
      FROM TA
         , TB
     WHERE TB.ID(+) = TA.ID;
    (c)
    SELECT TA.ID TA
         , TB.ID TB
      FROM TA
      LEFT OUTER JOIN TB ON TA.ID = TB.ID;
    I have the right call outer join query because the (+) sign is located on the right and outer join query (b) left because the (+) sign is on the left?

    Or is the left join or right determined by the join columns specified in the order select it?



    Create the Script
    CREATE TABLE TA
      (
        "ID" NUMBER
      );
    
    CREATE TABLE TB
      (
        "ID" NUMBER
      );
    
    INSERT INTO TA (ID) VALUES ('1');
    INSERT INTO TA (ID) VALUES ('2');
    INSERT INTO TA (ID) VALUES ('3');
    
    INSERT INTO TB (ID) VALUES ('1');
    INSERT INTO TB (ID) VALUES ('2');
    INSERT INTO TB (ID) VALUES ('4');
    Ben

    Published by: benton on August 15, 2012 08:16

    Hi, Ben.

    Benton says:
    ... So is it correct to say that the left or right refers to which side the null values will be displayed?

    Lol it is incorrect to say that the old syntax outer join (using the sign +) is either a left - or a right outer join.

    ... So I need to have the order of the columns in the correct SELECTION so that there is no likelihood of confusion over which side will display NULL values. If I place the columns A and B in the wrong order, that is to say B then a I'll lend to confusion about what will be returned with respect whether left or right.

    No, do not hesitate to organize columns in the select in any way will help your users the most. What is happening in the FROM and WHERE clause, in particular the order in which the tables happens to appear, may not have something to do with the order of the columns in the output.
    Many readers are more comfotable with having NULL columns at the end of a line of output, or at least not at the beginning, so maybe it's one of the reasons for ta.id first in your example. Rearrange the columns in the game any way more than makes sense for people who will look at them.

Maybe you are looking for