desert emperor
New member
- Local time
- Today, 02:47
- Joined
- Feb 11, 2008
- Messages
- 8
I hope I'm posting in the right place, if no let me know where to put this post.
I'm trying to make a database for my customers to enter information related to them and what they bought from me to be able after that to make some statistics and analyze..
So the first Table I made is:
PART I:
"Customers" : contains the fields:
-CustomerID : Number (PK)
-CompanyName : Text
-FirstName : Text
-LastName : Text
-Gender : Text
-Nationality: Text
-CustomerAddress: Text
-CprNO: Text (it's the identity nb)
-DateOfBirth: Date/Time
-Race: Text
-Email: Text
-CompanyWebsite: Hyperlink
-PhoneNumber: Text
-MobileNumber: Text
-FaxNumber: Text
-Notes: Memo
1- I need all these info is it considered so many fields for 1 table?
2-For the "CustomerAddress" field is it better to divide it into "streetNb", "City" , "country"...? i saw some threads that suggest that why?
3-Are all my field types correct? Especially for the PK (is it better to make it auto number and "increment"? for the phone,mobile and fax is it ok as "text"? or better "number" ? show i give it a mask so all the entered phones have the same format?
Part 2:
Table : "Products"
Fields:
-ProductID: AutoNumber - Increment (PK)
-ProductName: Text
-UnitPrice: Number
-InStock: Yes/No
1- For the UnitPrice if i want to use a currency other than the US $ or Euro can i configure my own? or i should leave it like now as a number without any sign?
Part 3 :
Table : "Employees"
Fields"
-EmployeeID : AutoNumber - Increment (PK)
-FirstName : Text
-LastName : Text
-Title : Text
-WorkPhone : Text
1-Same question as before for the workphone data type.Also any fields in mind that i should add?
Part 4 :
Table: "Orders"
Fields:
-OrderID : Number
-CustomerID : Number
-ProductID : Number
-EmployeeID : Number
-WarrantyNumber : Text
-InvoiceNumber : Text
-ProductNumber : Text
-SerialNumber : Text
-DateOfPurchase : Text
-PlaceOfPurchace : Text
-SalesmanName : Text
-CustomerName : Text
1-Well for this table it should handles the orders so i can enter for each customers the product ( or products he bought) at the same or differents dates.
2-I'm not sure that the fields that i entered in this table are correct in "data type" or "location" ( i mean they should be in other table? for example "SerialNumber", "WarrantyNumber" should be in here or in "product table" or it doesn't matter??
3-I added the fields "CustomerID", "ProductID" and "EmployeeID" so i can make relations with the other tables later! is it correct or no?
WELL i will stop in here for now, i'm not sure that you are interested in helping me maybe you'll find it long for reading but it's all explanations to make answers easier and accurate, please try to answer me on my questions first and than give me your suggestions and later i have in mind other questions but i want first to finish with the tables, structures and relations in my database.
Thanks so much for all of you that take a look, and would like to help.
I'm trying to make a database for my customers to enter information related to them and what they bought from me to be able after that to make some statistics and analyze..
So the first Table I made is:
PART I:
"Customers" : contains the fields:
-CustomerID : Number (PK)
-CompanyName : Text
-FirstName : Text
-LastName : Text
-Gender : Text
-Nationality: Text
-CustomerAddress: Text
-CprNO: Text (it's the identity nb)
-DateOfBirth: Date/Time
-Race: Text
-Email: Text
-CompanyWebsite: Hyperlink
-PhoneNumber: Text
-MobileNumber: Text
-FaxNumber: Text
-Notes: Memo
1- I need all these info is it considered so many fields for 1 table?
2-For the "CustomerAddress" field is it better to divide it into "streetNb", "City" , "country"...? i saw some threads that suggest that why?
3-Are all my field types correct? Especially for the PK (is it better to make it auto number and "increment"? for the phone,mobile and fax is it ok as "text"? or better "number" ? show i give it a mask so all the entered phones have the same format?
Part 2:
Table : "Products"
Fields:
-ProductID: AutoNumber - Increment (PK)
-ProductName: Text
-UnitPrice: Number
-InStock: Yes/No
1- For the UnitPrice if i want to use a currency other than the US $ or Euro can i configure my own? or i should leave it like now as a number without any sign?
Part 3 :
Table : "Employees"
Fields"
-EmployeeID : AutoNumber - Increment (PK)
-FirstName : Text
-LastName : Text
-Title : Text
-WorkPhone : Text
1-Same question as before for the workphone data type.Also any fields in mind that i should add?
Part 4 :
Table: "Orders"
Fields:
-OrderID : Number
-CustomerID : Number
-ProductID : Number
-EmployeeID : Number
-WarrantyNumber : Text
-InvoiceNumber : Text
-ProductNumber : Text
-SerialNumber : Text
-DateOfPurchase : Text
-PlaceOfPurchace : Text
-SalesmanName : Text
-CustomerName : Text
1-Well for this table it should handles the orders so i can enter for each customers the product ( or products he bought) at the same or differents dates.
2-I'm not sure that the fields that i entered in this table are correct in "data type" or "location" ( i mean they should be in other table? for example "SerialNumber", "WarrantyNumber" should be in here or in "product table" or it doesn't matter??
3-I added the fields "CustomerID", "ProductID" and "EmployeeID" so i can make relations with the other tables later! is it correct or no?
WELL i will stop in here for now, i'm not sure that you are interested in helping me maybe you'll find it long for reading but it's all explanations to make answers easier and accurate, please try to answer me on my questions first and than give me your suggestions and later i have in mind other questions but i want first to finish with the tables, structures and relations in my database.
Thanks so much for all of you that take a look, and would like to help.