SQL - Where Clause includes (+)

Posted on 2011-10-20
Last Modified: 2012-08-13
I am trying to analyze a query that has a Where clause that is formatted like this:

WHERE n.dept_id=d.dept_id(+)

What does the (+) mean?

Question by:oneDayAtaTime
    LVL 28

    Assisted Solution

    It indicates a one to many relationship.
    OM Gang
    LVL 73

    Expert Comment

    it indicates an outer join.

    your "d" table is outer joined to your "n" table
    LVL 73

    Accepted Solution

    to correlate to ANSI syntax

    eslect * from n,d
    where n.dept_id = d.dept_id(+)

    is equivalent to....

    select * from n
    left outer join d
    on  n.dept_id = d.dept_id


    Author Closing Comment

    Thank you!!!

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Suggested Solutions

    This article describes some very basic things about SQL Server filegroups.
    This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
    Video by: Steve
    Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now