Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Convert Oracle Query to MS-Access

Convert Oracle Query to MS-Access

Scheduled Pinned Locked Moved Database
databaseoraclequestion
7 Posts 5 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    M Riaz Bashir
    wrote on last edited by
    #1

    Hi, Kindly let me know how may I convert following Oracle sql into MS-Access ?

    SELECT A.SNO, A.CODE, A.QTY, A.RATE, B.NAME
    FROM DETAIL A, MASTER B
    WHERE A.CODE=B.CODE(+)

    thanx in advance

    M J 2 Replies Last reply
    0
    • M M Riaz Bashir

      Hi, Kindly let me know how may I convert following Oracle sql into MS-Access ?

      SELECT A.SNO, A.CODE, A.QTY, A.RATE, B.NAME
      FROM DETAIL A, MASTER B
      WHERE A.CODE=B.CODE(+)

      thanx in advance

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      This should wok, I'm not sure what the significance of (+) is in the join

      SELECT A.SNO, A.CODE, A.QTY, A.RATE, B.NAME
      FROM DETAIL A
      INNER JOIN MASTER B ON A.CODE=B.CODE

      J 1 Reply Last reply
      0
      • M M Riaz Bashir

        Hi, Kindly let me know how may I convert following Oracle sql into MS-Access ?

        SELECT A.SNO, A.CODE, A.QTY, A.RATE, B.NAME
        FROM DETAIL A, MASTER B
        WHERE A.CODE=B.CODE(+)

        thanx in advance

        J Offline
        J Offline
        Jorgen Andersson
        wrote on last edited by
        #3

        M Riaz Bashir wrote:

        Kindly let me know how may I convert following Oracle sql into MS-Access ?

        Why, would anyone ever move from oracle to access? Anyway, here goes.

        SELECT A.SNO, A.CODE, A.QTY, A.RATE, B.NAME
        FROM DETAIL A RIGHT JOIN MASTER B
        WHERE A.CODE=B.CODE

        D 1 Reply Last reply
        0
        • M Mycroft Holmes

          This should wok, I'm not sure what the significance of (+) is in the join

          SELECT A.SNO, A.CODE, A.QTY, A.RATE, B.NAME
          FROM DETAIL A
          INNER JOIN MASTER B ON A.CODE=B.CODE

          J Offline
          J Offline
          Jorgen Andersson
          wrote on last edited by
          #4

          The (+) makes it an outer join.

          1 Reply Last reply
          0
          • J Jorgen Andersson

            M Riaz Bashir wrote:

            Kindly let me know how may I convert following Oracle sql into MS-Access ?

            Why, would anyone ever move from oracle to access? Anyway, here goes.

            SELECT A.SNO, A.CODE, A.QTY, A.RATE, B.NAME
            FROM DETAIL A RIGHT JOIN MASTER B
            WHERE A.CODE=B.CODE

            D Offline
            D Offline
            David Skelly
            wrote on last edited by
            #5

            I think it's a left join, not a right join. I'm not an Oracle expert but I have a feeling the (+) goes on the side of the join which is not required (not sure of the technical term for that). In other words

            a.code = b.code(+)

            is a left outer join and

            a.code(+) = b.code

            is a right outer join. I'm not 100% sure about that so don't take my word for it.

            J C 2 Replies Last reply
            0
            • D David Skelly

              I think it's a left join, not a right join. I'm not an Oracle expert but I have a feeling the (+) goes on the side of the join which is not required (not sure of the technical term for that). In other words

              a.code = b.code(+)

              is a left outer join and

              a.code(+) = b.code

              is a right outer join. I'm not 100% sure about that so don't take my word for it.

              J Offline
              J Offline
              Jorgen Andersson
              wrote on last edited by
              #6

              Damn! I need a coffee. Or actually rather a beer. Or both.

              1 Reply Last reply
              0
              • D David Skelly

                I think it's a left join, not a right join. I'm not an Oracle expert but I have a feeling the (+) goes on the side of the join which is not required (not sure of the technical term for that). In other words

                a.code = b.code(+)

                is a left outer join and

                a.code(+) = b.code

                is a right outer join. I'm not 100% sure about that so don't take my word for it.

                C Offline
                C Offline
                Chris Meech
                wrote on last edited by
                #7

                a.code = b.code(+)

                The (+) says any a.code value will match a NULL b.code value. Meaning you get all the a.code values.

                Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups