• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Urgent Oracle SQL Question (INNER JOIN)

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    #11
    Originally posted by Platypus View Post
    Actually, working on Plan B
    Sounds like you need a better local oppo, then, if you need to tell him how to select from two tables!
    Best Forum Advisor 2014
    Work in the public sector? You can read my FAQ here
    Click here to get 15% off your first year's IPSE membership

    Comment


      #12
      Originally posted by TheFaQQer View Post
      Sounds like you need a better local oppo, then, if you need to tell him how to select from two tables!
      Not my oppo, customer's oppo. Plan B can't afford its own oppo yet

      Comment


        #13
        Originally posted by Spacecadet View Post
        that would work fine too, technically no reason not to
        Personally I'd say that good practice dictates otherwise though
        Every person I have met who has used inner join has been a complete numpty. Those who use "=" are far better.

        Maybe it is just me?

        Comment


          #14
          Originally posted by BrilloPad View Post
          Every person I have met who has used inner join has been a complete numpty. Those who use "=" are far better.

          Maybe it is just me?
          No, it's not just you.

          I've never written an inner join using the ANSI syntax.

          Some clients will demand that you use it, but I would still only use the ANSI syntax for outer joins rather than an inner join.
          Best Forum Advisor 2014
          Work in the public sector? You can read my FAQ here
          Click here to get 15% off your first year's IPSE membership

          Comment


            #15
            Originally posted by BrilloPad View Post
            Every person I have met who has used inner join has been a complete numpty. Those who use "=" are far better.

            Maybe it is just me?
            I used to use "=" then switched

            Once you start writing more complex queries you'll understand the benefits
            Coffee's for closers

            Comment


              #16
              Originally posted by Spacecadet View Post
              I used to use "=" then switched

              Once you start writing more complex queries you'll understand the benefits
              The only benefit I can see is that it helps separate the join condition from the data selection conditions.

              I have enough trouble with

              SELECT *
              FROM emp
              WHERE ename = 'KING'

              to be honest - I'll leave such complex queries to others
              Best Forum Advisor 2014
              Work in the public sector? You can read my FAQ here
              Click here to get 15% off your first year's IPSE membership

              Comment


                #17
                Originally posted by Spacecadet View Post
                I used to use "=" then switched

                Once you start writing more complex queries you'll understand the benefits
                What he said.

                And if you're using a inner join and then want to switch to an outer join, you only have to change a couple of words.
                It's about time I changed this sig...

                Comment


                  #18
                  Originally posted by MrRobin View Post
                  What he said.

                  And if you're using a inner join and then want to switch to an outer join, you only have to change a couple of words.
                  As opposed to adding (+)
                  Best Forum Advisor 2014
                  Work in the public sector? You can read my FAQ here
                  Click here to get 15% off your first year's IPSE membership

                  Comment


                    #19
                    Originally posted by TheFaQQer View Post
                    As opposed to adding (+)
                    Yeah in Oracle you can use this, but if you get into this habbit and then have to start using other databases, this syntax doesn't work.
                    It's about time I changed this sig...

                    Comment


                      #20
                      Originally posted by MrRobin View Post
                      Yeah in Oracle you can use this, but if you get into this habbit and then have to start using other databases, this syntax doesn't work.
                      I'll bear that in mind for when Oracle migrate the eBusiness Suite away from the Oracle database

                      After all, there is no other database but Oracle.
                      Best Forum Advisor 2014
                      Work in the public sector? You can read my FAQ here
                      Click here to get 15% off your first year's IPSE membership

                      Comment

                      Working...
                      X