?
Solved

Syntax to INNER JOIN and to LEFT OUTER JOIN using multi columns in SAME table....?

Posted on 2007-12-05
2
Medium Priority
?
1,068 Views
Last Modified: 2009-07-29
Experts:

What is the correct syntax for INNER JOIN....and....LEFT OUTER JOIN...when trying to join TableA and TableB using multiple columns....? Let's say 3 different columns are used to JOIN TableA and TableB....can you give me the Syntax for BOTH ......INNER AND LEFT JOINS.....separately......

THANKS

MikeV
0
Comment
Question by:MIKE
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 2000 total points
ID: 20412270
for example:

SELECT ....
FROM tableA a
INNER JOIN tableB b
  ON a.col1 = b.col1
 AND a.col2 = b.col2
LEFT JOIN tableC c
  ON a.col1 = c.col1
 AND a.col2 = c.col2
0
 
LVL 17

Author Comment

by:MIKE
ID: 20412334
Thanks

MikeV
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In database programming, custom sort order seems to be necessary quite often, at least in my experience and time here at EE. Within the realm of custom sorting is the sorting of numbers and text independently (i.e., treating the numbers as number…
This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question