|
-
Jun 4th, 2003, 11:09 AM
#1
Thread Starter
Hyperactive Member
what is Left Join and Right Join
could any body describe what is Left Join and Right Join ?
thanks for reply.....
-
Jun 4th, 2003, 11:38 AM
#2
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|