Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6089635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:07:20+00:00 2026-05-23T12:07:20+00:00

Can any one tell me whether below 2 queries are an example of Left

  • 0

Can any one tell me whether below 2 queries are an example of Left Outer Join or Right Outer Join??

Table Part:
Name         Null?       Type
PART_ID      NOT NULL    VARCHAR2(4)
SUPPLIER_ID              VARCHAR2(4)

PART_ID SUPPLIER_ID
P1      S1
P2      S2
P3  
P4  

Table Supplier:
Name            Null?     Type
SUPPLIER_ID NOT NULL      VARCHAR2(4)
SUPPLIER_NAME   NOT NULL  VARCHAR2(20)

SUPPLIER_ID  SUPPLIER_NAME
S1           Supplier#1
S2           Supplier#2
S3           Supplier#3

Display all the parts irrespective of whether any supplier supplies them or not:

SELECT P.Part_Id, S.Supplier_Name
FROM Part P, Supplier S
WHERE P.Supplier_Id = S.Supplier_Id (+)

SELECT P.Part_Id, S.Supplier_Name
FROM Part P, Supplier S
WHERE S.Supplier_Id (+) = P.Supplier_Id
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T12:07:20+00:00Added an answer on May 23, 2026 at 12:07 pm

    TableA LEFT OUTER JOIN TableB is equivalent to TableB RIGHT OUTER JOIN Table A.

    In Oracle, (+) denotes the “optional” table in the JOIN. So in your first query, it’s a P LEFT OUTER JOIN S. In your second query, it’s S RIGHT OUTER JOIN P. They’re functionally equivalent.

    In the terminology, RIGHT or LEFT specify which side of the join always has a record, and the other side might be null. So in a P LEFT OUTER JOIN S, P will always have a record because it’s on the LEFT, but S could be null.

    See this example from java2s.com for additional explanation.


    To clarify, I guess I’m saying that terminology doesn’t matter, as it’s only there to help visualize. What matters is that you understand the concept of how it works.


    RIGHT vs LEFT

    I’ve seen some confusion about what matters in determining RIGHT vs LEFT in implicit join syntax.

    LEFT OUTER JOIN

    SELECT *
    FROM A, B
    WHERE A.column = B.column(+)
    

    RIGHT OUTER JOIN

    SELECT *
    FROM A, B
    WHERE B.column(+) = A.column
    

    All I did is swap sides of the terms in the WHERE clause, but they’re still functionally equivalent. (See higher up in my answer for more info about that.) The placement of the (+) determines RIGHT or LEFT. (Specifically, if the (+) is on the right, it’s a LEFT JOIN. If (+) is on the left, it’s a RIGHT JOIN.)


    Types of JOIN

    The two styles of JOIN are implicit JOINs and explicit JOINs. They are different styles of writing JOINs, but they are functionally equivalent.

    See this SO question.

    Implicit JOINs simply list all tables together. The join conditions are specified in a WHERE clause.

    Implicit JOIN

    SELECT *
    FROM A, B
    WHERE A.column = B.column(+)
    

    Explicit JOINs associate join conditions with a specific table’s inclusion instead of in a WHERE clause.

    Explicit JOIN

    SELECT *
    FROM A
    LEFT OUTER JOIN B ON A.column = B.column
    

    These
    Implicit JOINs can be more difficult to read and comprehend, and they also have a few limitations since the join conditions are mixed in other WHERE conditions. As such, implicit JOINs are generally recommended against in favor of explicit syntax.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can any one tell what does below given lines means? The lines below are
Can any one please tell me how to check whether the text in a
Can any one tell, how to get the result of LINQ query contains group
Can any one tell me how can I make divs visible in ASP.NET. I
can any one tell me how to implement a standalone java client for playing
Can any one tell me? what does following means in ruby program: obj =
Can any one tell me how to display a dataset value from the web
Can any one tell me if its possible to create a stored procedure in
Can any one tell me how can i replace the slideup function with fadeout('slow')
Can any one tell me how to solve the following scenario in Asp.net application.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.