Hi, I am new at using SQL and I made a very simple query to pull a few fields from 2 different tables. Now I need to add a field from a 3rd table but I am not sure how to link them. My statement so far is:
select key1 as 'ASI#', contact1.Company, contsupp.contact as "Type", contsupref as "Web Address"
from contact1,contsupp
where contact1.accountno = contsupp.accountno and
contact1.accountno = supp.accountno
contsupp.contact = 'Web Site' and rectype = 'p'
The 3rd table I need to link is called contact2 which also has the accountno field. I cannot find any straight forward explanation to do this even tho it seems like a pretty common thing to do. I'd appreciate it if somebody can point me in the right direction. Thanks!
select key1 as 'ASI#', contact1.Company, contsupp.contact as "Type", contsupref as "Web Address"
from contact1,contsupp
where contact1.accountno = contsupp.accountno and
contact1.accountno = supp.accountno
contsupp.contact = 'Web Site' and rectype = 'p'
The 3rd table I need to link is called contact2 which also has the accountno field. I cannot find any straight forward explanation to do this even tho it seems like a pretty common thing to do. I'd appreciate it if somebody can point me in the right direction. Thanks!