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. Left Right Table

Left Right Table

Scheduled Pinned Locked Moved Database
question
4 Posts 4 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.
  • M Offline
    M Offline
    mehrdadc48
    wrote on last edited by
    #1

    In a join which table is said Left, which one right? It depends on List in select or order in On or ...

    Best wishes

    R J M 3 Replies Last reply
    0
    • M mehrdadc48

      In a join which table is said Left, which one right? It depends on List in select or order in On or ...

      Best wishes

      R Offline
      R Offline
      Rupesh Kumar Swami
      wrote on last edited by
      #2

      table1 left join table2 on table1.id=table2.id here table1 is left table whereas table2 is right. Query return all record from table1 plus matches record from table2 table1 right join table2 on table1.id=table2.id here table1 is left table whereas table2 is right. Query return all record from table2 plus matches record from table1 hope this clear your confusion

      Rupesh Kumar Swami Software Developer, Integrated Solution, Bikaner (India) My Company Award: Best VB.NET article of June 2008: Create Column Charts Using OWC11

      1 Reply Last reply
      0
      • M mehrdadc48

        In a join which table is said Left, which one right? It depends on List in select or order in On or ...

        Best wishes

        J Offline
        J Offline
        J4amieC
        wrote on last edited by
        #3

        The left one is the one on the left of the join and the right one is the one on the right of the join. That is in Left-to-Right text. I cant imagine how messed up queries would look in Hebrew (RtL)

        1 Reply Last reply
        0
        • M mehrdadc48

          In a join which table is said Left, which one right? It depends on List in select or order in On or ...

          Best wishes

          M Offline
          M Offline
          Muhammad Shahid Farooq
          wrote on last edited by
          #4

          See the following example: Select table1.*, table2.* From table1 join table2 on table1.Id = table2.Id In the above example table1 is considered left and table2 is considered right.

          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