Contacts table from Customers and Suppliers Tables
-
19 Temmuz 2012 Perşembe 11:45
original question, before submitting issue
"My Customers table contains Customers names (companies as well as persons)": I mean that my customers can be either physical persons or companies, so I think that we are in case of 1 customer can have 1 or many contacts, and 1 contact cannot belong to more than 1 customer.
So I made Contact Table containing ID, Name, ..... , CustomerID,SupplierID,EmpoyeeID, ... to show whitch category the contact is belonging to. I'm almost certain that this idea is not yet the best.
Then I created a new table: Companies with ID, CompanyName to indicates which Company is customer and supplier at the same time, in order no to have the same contact twice.
Please is there any better thoughts ?Thanks in advance .
Tüm Yanıtlar
-
19 Temmuz 2012 Perşembe 11:37
"My Customers table contains Customers names (companies as well as persons)": I mean that my customers can be either physical persons or companies, so I think that we are in case of 1 customer can have 1 or many contacts, and 1 contact cannot belong to more than 1 customer.
So I made Contact Table containing ID, Name, ..... , CustomerID,SupplierID,EmpoyeeID, ... to show whitch category the contact is belonging to. I'm almost certain that this idea is not yet the best.
Then I created a new table: Companies with ID, CompanyName to indicates which Company is customer and supplier at the same time, in order no to have the same contact twice.
Please is there any better thoughts ?Thanks in advance .- Birleştiren amber zhangEditor 20 Temmuz 2012 Cuma 01:53
-
19 Temmuz 2012 Perşembe 13:11
Hi
Follow the steps:
1. Make a table of Supplier(attribute1,.......,attributen).
2. make an contactDetail table which contain (contact information )
3.Make a relation between one to many between Contact and Supplier.
Bye
Ahsan Kabir
-
19 Temmuz 2012 Perşembe 13:12
Hi
Follow the steps:
1. Make a table of Supplier(attribute1,.......,attributen).
2. make an contactDetail table which contain (contact information )
3.Make a relation between one to many between Contact and Supplier.
Bye
Ahsan Kabir
- Yanıt Olarak İşaretleyen amber zhangEditor 26 Temmuz 2012 Perşembe 05:24
-
19 Temmuz 2012 Perşembe 13:48
@Ahsan, I have already passed that stage, Thank you any way.