Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Table Join - One to Many Relationship

Status
Not open for further replies.

stuckDuck

Programmer
Jun 30, 2010
30
0
0
CA
I am trying to join two tables that have a 1 to many relationship. Is this an outer join? I am getting duplicate records.


ie

where a.TableOne = b.TableMany (+)
 
first of all, you posted in the ANSI SQL forum, and that [bleeping] plus sign is not ANSI SQL, it's proprietary syntax that works only on Oracle, so perhaps you'd be better off pursuing your questions in one of the Oracle forums

also, whether you want an inner join or an outer join is dictated by which rows you want returned (matched and/or unmatched), not by the tables themselves

r937.com | rudy.ca
Buy my new book Simply SQL from Amazon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top