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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LEFT JOIN 2

Status
Not open for further replies.

stigejg

Technical User
Mar 28, 2001
55
NO
Hi,

I am sitting here with big troube to run LEFT join on mu sql-script and woundering if here is some problem with my database or sqø*+?????

SELECT a.pnr, m.kpnr, b.fname, b.lname
FROM (person a LEFT JOIN marrage m ON a.pnr = m.kpnr) LEFT JOIN person b ON m.mpnr = b.pnr;

This is a simple script, but will not run on my database, does anyone se something wrong here.

This select-sentence runs perfectly on ms access.

I will be pleased with any hints of what's wrong here.

regard Stig
 
I believe that syntax is not supported by oracle.
Try something like the following syntax:
SELECT *
FROM a,b
Where a.Col1 (+)= b.Col2;
 
As far as I know Oracle does not support JOIN syntax (at least now). For outer joins (+) is used.
 
Thanks folks,

For a moment I got a litle doubt on my knowledge in sql, but no I am back in busines again.

Stig
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top