Results 1 to 2 of 2

Thread: what is Left Join and Right Join

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2003
    Location
    india
    Posts
    273

    Unhappy what is Left Join and Right Join

    could any body describe what is Left Join and Right Join ?

    thanks for reply.....

  2. #2
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951
    There are two outer joins: LEFT JOIN and RIGHT JOIN. The "direction" of the join refers to the relative position of the table names in the FROM clause of the SQL statement. A LEFT JOIN returns a record from the table on the left side of the FROM clause, whether or not a matching record exists on the right side. A RIGHT JOIN returns a record from the table on the right side of the FROM clause, whether or not a matching record exists on the left side. These two FROM clauses, therefore, have identical results:

    FROM Customers LEFT JOIN Invoices ON Customers.[Customer Number] = Invoices.[Customer Number]

    FROM Invoices RIGHT JOIN Customers ON Invoices.[Customer Number] = Customers.[Customer Number]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width