DeskMonkey
New member
- Local time
- Yesterday, 22:54
- Joined
- Dec 22, 2011
- Messages
- 3
Hi all,
New to both Access and this Forum, but after putting it off for so long, have now decided to try to get my head around Databases. My first project is to build a Database that enables me to search a customers past orders with my company. What I need to know firstly, is how best to structure the database. These are what I have so far (trying to migrate from Excel):
Table 1:
Customer ID (PK)
Customer Name
Customer Address 1
Customer Address 2
Post Code
Phone Number.
Table 2:
Product Code (PK)
Product Description
Pack Size
Case Size
So, table one is essentially a customer list and table 2 is essentially a product list. Keeping the 2 entirely seperate makes complete sense, but how should I go about recording each customer's purchase history. Obv Each customer will buy many products - some of which will be on several customer's histories.
Do I create a seperate table for each customer with their history on? That seems to make sense, but equally, it seems to go against all the fundamentals of database design.
I am doing this with a view to incorporating several other elements such as Customer complaints, enquiries, etc later down the line. For now though, my goal is to be able to type the Customer Code and a Keyword into a search query and have all the items a customer has bought containing that keyword returned in the results.
I would appreciate any help on this - and would also appreciate any pointers to good tutorials. I am self taoght in Excel and reasonably competant, so am confident I can pick up Access once I get my head around the principles and how it differs to Excel.
Many thanks in advance!
New to both Access and this Forum, but after putting it off for so long, have now decided to try to get my head around Databases. My first project is to build a Database that enables me to search a customers past orders with my company. What I need to know firstly, is how best to structure the database. These are what I have so far (trying to migrate from Excel):
Table 1:
Customer ID (PK)
Customer Name
Customer Address 1
Customer Address 2
Post Code
Phone Number.
Table 2:
Product Code (PK)
Product Description
Pack Size
Case Size
So, table one is essentially a customer list and table 2 is essentially a product list. Keeping the 2 entirely seperate makes complete sense, but how should I go about recording each customer's purchase history. Obv Each customer will buy many products - some of which will be on several customer's histories.
Do I create a seperate table for each customer with their history on? That seems to make sense, but equally, it seems to go against all the fundamentals of database design.
I am doing this with a view to incorporating several other elements such as Customer complaints, enquiries, etc later down the line. For now though, my goal is to be able to type the Customer Code and a Keyword into a search query and have all the items a customer has bought containing that keyword returned in the results.
I would appreciate any help on this - and would also appreciate any pointers to good tutorials. I am self taoght in Excel and reasonably competant, so am confident I can pick up Access once I get my head around the principles and how it differs to Excel.
Many thanks in advance!
