arnyinc
04-09-2003, 02:47 PM
I'm use ASP and SQL to query an oracle 8i database. I have a table with a list of projects. Two of the fields in this table are proj_primary and proj_backup. These are the primary and secondary contact people for the project. I then have a Contacts table with a corresponding ID. I use a left outer join to find the contact information in the contacts table:
select p.proj_primary, p.proj_backup, c.contact_fname, c.contact_lname from projects p, contacts c WHERE p.proj_primary=c.contact_id(+);
Is it possible to get the primary and backup contact information in one SQL statement? This only gives me the primary contact's information.
select p.proj_primary, p.proj_backup, c.contact_fname, c.contact_lname from projects p, contacts c WHERE p.proj_primary=c.contact_id(+);
Is it possible to get the primary and backup contact information in one SQL statement? This only gives me the primary contact's information.