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

SQL Query To Pull Contact Info for Additional Contacts 1

Status
Not open for further replies.

captrick

IS-IT--Management
Feb 12, 2004
21
US
I am working on a SQL Qurey to pull this information from the Contact1 and Contsupp tables, but I am not having any luck:

Contact Name for subcontacts
Address of subcontact
Customer Name
City
State
Zip

Any help would be highly appreciated.
 
Hi

Try the following

Select Company, contsupp.contact, contsupp.Address1, contsupp.Address2, contsupp.city, contsupp.State, contsupp.Country,contsupp.Zip from contact1,contsupp where rectype = 'C' and contact1.accountno = contsupp.accountno

 
Thank you. I finally figured out the record type thing...seems our vendor forgot to inform me that the contsupp table stores different information in the fields than you would think on first look....LOL
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top