Re: new to joins
Hi,
Check if this helps you...
(Taking Harsha Chaithanya K's assumption of foreign keys)
SELECT X.LastName,Y.LastName,Z.eventcode
FROM
EVENTS as Z
LEFT OUTER JOIN
CONTACTS as X
ON Z.primary_contactID=X.contactID
LEFT OUTER JOIN
CONTACTS as Y
ON Z.secondary_contactID=Y.contactID ;
Regards,
Ram.
P.S:
If primary and secondary contacts are mandatory then use simple "inner join" ( comma separated table list)
We Learn the Most When we have to Invent
Subject
Written By
Posted
Re: new to joins
August 31, 2004 04:36AM
September 01, 2004 01:46PM
September 01, 2004 10:52PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.