What is the difference between the new JOIN operator and the previous ones?

4

I was looking at some examples of SQL in Oracle, and I noticed that it's only possible to do JOIN .

Example

SELECT
    T1.*,
    T2.desc
FROM
    table1 T1
    JOIN table2 T2 ON T2.id = T1.id_table2

Question

  • What is the difference of this operator?
  • What is the relationship with LEFT , RIGHT ? Or is it the same as FULL ?

Addendum

Related question: What's the difference between INNER JOIN and OUTER JOIN?

    
asked by anonymous 30.03.2017 / 14:07

1 answer

8
  

What is the difference of this operator?

None. JOIN is exactly the same as INNER JOIN . It's just syntax sugar .

In the inner join documentation of Oracle, you can see that the inner tag is enclosed in brackets, indicating that it is optional.

  

Syntax

TableExpression [ INNER ] JOIN TableExpression  
{  
    ON booleanExpression |  
    USING clause  
}  
  

What is the relationship with LEFT, RIGHT? Or is it the same as a FULL?

No relation to LEFT or RIGHT JOIN , nor with FULL/OUTER JOIN .

    
30.03.2017 / 14:09