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
  1. Home
  2. Database & SysAdmin
  3. Database
  4. SQL Joins: Which is best?

SQL Joins: Which is best?

Scheduled Pinned Locked Moved Database
databasehelpquestion
4 Posts 3 Posters 0 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.
  • S Offline
    S Offline
    shivarishxxxx
    wrote on last edited by
    #1

    Hi, I would like to know which is the most latest and good way of writing SQL Joins. Is it by using *=, =* etc. eg: select distinct * from employee,department where employee.DepartmentID *=department.DepartmentID ( or)is it ANSI Standard? Eg: SELECT distinct * FROM employee LEFT OUTER JOIN department ON employee.DepartmentID = department.DepartmentID Please help.

    rmr

    P 1 Reply Last reply
    0
    • S shivarishxxxx

      Hi, I would like to know which is the most latest and good way of writing SQL Joins. Is it by using *=, =* etc. eg: select distinct * from employee,department where employee.DepartmentID *=department.DepartmentID ( or)is it ANSI Standard? Eg: SELECT distinct * FROM employee LEFT OUTER JOIN department ON employee.DepartmentID = department.DepartmentID Please help.

      rmr

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      shivarishxxxx wrote:

      select distinct * from employee,department where employee.DepartmentID *=department.DepartmentID

      This type of join is slowly being phased out. The Inner/Outer join is the way to go for you.

      the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
      Deja View - the feeling that you've seen this post before.

      S 1 Reply Last reply
      0
      • P Pete OHanlon

        shivarishxxxx wrote:

        select distinct * from employee,department where employee.DepartmentID *=department.DepartmentID

        This type of join is slowly being phased out. The Inner/Outer join is the way to go for you.

        the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
        Deja View - the feeling that you've seen this post before.

        S Offline
        S Offline
        shivarishxxxx
        wrote on last edited by
        #3

        Thanks for your prompt reply.

        rmr

        B 1 Reply Last reply
        0
        • S shivarishxxxx

          Thanks for your prompt reply.

          rmr

          B Offline
          B Offline
          briskvision2004
          wrote on last edited by
          #4

          Does anybody know how to get the sql log information? Thanks, Rob http://www.vwsolutions.com

          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