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!

Basic question on table design & relationships

Status
Not open for further replies.

topgeek

MIS
Oct 28, 2001
59
GB
I have been asked to put together a database where we have Customers who have multiple sites and then engineers that could make multiple visits to those sites.

Could anyone help me with the corcect structure and relationships for a database like this?
 
First thing to do is read The Fundamentals of Relational Database Design. Once you've read that you should have more specific questions and a preliminary table structure to post for critique and review.

Leslie

Anything worth doing is a lot more difficult than it's worth - Unknown Induhvidual
 
Hi!

Try this:

CustomerTable
CustomerID
MainPhoneNum
WebSite
etc.

CustomerSites
CustomerID
SiteNum
PhoneNum
Address
Address2
City
State
etc

EngineersTable(could be employee)
EmployeeID
Name
etc

VisitsTable
EmployeeID
CustomerID
SiteNum
Date
Reason
Comments
etc

ContactsTable
ContactID
CustomerID
SiteNum
PhoneNum
Email
Name
etc.

hth


Jeff Bridgham
Purdue University
Graduate School
Data Analyst
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top