Posted by: Rhonda | July 1, 2008

SQL Join Resources

A Join combines records from two (or more) tables to create a new data set.  There are several ways to join SQL tables.  Below are the most common Joins.

  • INNER Join – Result will contain matching records from both tables
  • LEFT Join – Result will contain all records from the “left” table even if the join-condition does not find any matching record in the “right” table
  • RIGHT Join – Result will contain all records from the “right” table even if the join-condition does not find any matching record in the “left” table
  • FULL Join – Result will contain all records from both tables, and fill in NULLs for missing matches on either side
  • CROSS Join – Result will contain returns the cartesian product of the sets of records from the two joined tables (Dangerous with large tables)

Instead of including all the normal code snippets illustrating each type of join, I am listing links to others who have done that job very well.

The above articles are ones the I will likely reference over and over again.


Responses

  1. Thanks, I really could have used that a few months back. I’m sure I’ll need it again in the future.

  2. Cool. This is mandatory reading on joins too. They are pretty deep though. I usually have to reread a time or two. http://blogs.msdn.com/craigfr/archive/tags/Joins/default.aspx

  3. [...] SQL Join Resources (Rhonda Tipton) [...]

  4. Thanks Jason! I have added the link to my article.

  5. [...] SQL Join Resources « Rhonda Tipton’s WebLog (tags: programming sql) Posted in General | Like this Article? Subscribe var disqus_url = ‘http://www.mkoby.com/2008/07/03/links-for-2008-07-03/ ‘; var disqus_title = ‘links for 2008-07-03′; var disqus_message = ‘%0ASQL Join Resources « Rhonda Tipton’s WebLog%0A(tags: programming sql)%0A’; View the entire comment thread. Subscribe [...]

  6. [...] Join Resources July 3, 2008 — alexw668 This seems to be good SQL join resource. Posted in SQL [...]


Leave a response

You must be logged in to post a comment.

Categories