SQL Query doubt

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rsrinivasan
    New Member
    • Mar 2007
    • 221

    SQL Query doubt

    Hi,
    Good Morning To All..

    I have doubt in my query..

    My Query is,

    select * from table1,table2, table3..
    where table1.field=ta ble2.field
    and table2.field(+) =table3.field(+ ).
    (my Query is very big. So i give only the model. Sorry for this...)

    My query is looking like above..
    I cant realize the (+) symbol in my Query. What is this?

    Thanks,

    Srinivasan r.
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    R u sure the + symbol is on both the sides of the = operator.

    Comment

    • rsrinivasan
      New Member
      • Mar 2007
      • 221

      #3
      Originally posted by debasisdas
      R u sure the + symbol is on both the sides of the = operator.
      Hi,

      No. It only on the right side of "=" operator.

      Thanks,

      Srinivasan r.

      Comment

      • debasisdas
        Recognized Expert Expert
        • Dec 2006
        • 8119

        #4
        The + symbol is called the predicate or the outer join operator.

        + (predicate) can be specified only on one side.

        The table on which the predicate is specified symbolises to select only matching records from that table and also non-matching from other table.

        Comment

        • debasisdas
          Recognized Expert Expert
          • Dec 2006
          • 8119

          #5
          Specifying + to symbolise outer join is oracle 8 syntax.
          It is still supported in 10g is only for backward compartability.

          If the predicate is specified on the left side ---it is right outer join
          If the predicate is specified on the right side ---it is left outer join.

          Comment

          • rsrinivasan
            New Member
            • Mar 2007
            • 221

            #6
            Originally posted by debasisdas
            Specifying + to symbolise outer join is oracle 8 syntax.
            It is still supported in 10g is only for backward compartability.

            If the predicate is specified on the left side ---it is right outer join
            If the predicate is specified on the right side ---it is left outer join.
            Ok.. Thanks....

            Comment

            • debasisdas
              Recognized Expert Expert
              • Dec 2006
              • 8119

              #7
              You are most welcome.

              Feel free to post your doubts/queries in the forum,

              But first give a try from your side

              and if possible specifty what u have tried to solve the question.

              In that case it will be easier for the EXPERTS of the forum in understanding and solving your problem

              debasisdas

              Comment

              • prakhar gupta
                New Member
                • Jun 2007
                • 1

                #8
                Originally posted by rsrinivasan
                Hi,
                Good Morning To All..

                I have doubt in my query..

                My Query is,

                select * from table1,table2, table3..
                where table1.field=ta ble2.field
                and table2.field(+) =table3.field(+ ).
                (my Query is very big. So i give only the model. Sorry for this...)

                My query is looking like above..
                I cant realize the (+) symbol in my Query. What is this?

                Thanks,

                Srinivasan r.
                The (+) symbol shows the syntax for OUTER JOIN. so whenever we are doing an outer join we use this operator...

                Comment

                Working...