Solved

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

Posted on 2007-12-05
2
1,060 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
2 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
Comment Utility
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
Comment Utility
Thanks

MikeV
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

'Between' is such a common word we rarely think about it but in SQL it has a very specific definition we should be aware of. While most database vendors will have their own unique phrases to describe it (see references at end) the concept in common …
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

763 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now