[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 185
  • Last Modified:

access primary key

I need some advice I need to create a database Global for my company which have a lot suppliers coming from all over the world. I need to create this database base on each location( sample USA, CANADA, UK, ASIA, AUSTRALIA)... I already have tables from all over the places with manufactures, distributor an extra info..My question is how can I set a primary key for each location supliers so all tables are not auto (01,02,03) and how can I build a relationship and run querys .
How can combine all and not show no repeats because some of the suppliers are repeats in some tables like for example USA and Canada may have some similar supplier.

Thanks for any advice hot to start this Monster!!
0
gabgar
Asked:
gabgar
  • 3
  • 3
  • 2
  • +3
1 Solution
 
Jim Dettman (Microsoft MVP/ EE MVE)PresidentCommented:
You really want an autonumber for the primary key.

 You will also need to create a second unique index on enough data to ensure that you don't enter someone twice.

 Where they are is just another fact (field or "attribute") about the company as is what they are.


  Extra information can be handled in a number of ways. We'd need to walk through that to determine how best to handle.

Jim.
0
 
Jim Dettman (Microsoft MVP/ EE MVE)PresidentCommented:
Also, since this sounds like your first DB and your aksing about keys, it's would be worth while to spend an hour on this:

.HOW TO: Introduction to Application & Database Design using Microsoft Access
http://www.youtube.com/watch?v=4YH6gG0Y660

Jim.
0
 
hnasrCommented:
Autonumber type is used for data that is not localized (i.e not known to the company). For example adding customers you need autonumber as primary key.

For company employees you can use predefined ids.
When using CustomerID in other tables as foreign key, it is a number and can be linked to the Customers table whose PK is autonumber.

You may start with a template from  available templates or Office.com.
Use Northwind database tohelp in designing your required database.
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
gabgarAuthor Commented:
Jim,

Is there local help from expert exchange?, or can the communication can be via phone?
0
 
gabgarAuthor Commented:
Northwind where can I find that?
0
 
gabgarAuthor Commented:
No that one wont work.
0
 
Jim Dettman (Microsoft MVP/ EE MVE)PresidentCommented:
<<Is there local help from expert exchange?, or can the communication can be via phone? >>

 This is it.  Experts-Exchange is a forum based help service and EE itself only provides the means of people to help people.  It doesn't hire Expert's or provide help on it's own.

Jim.
0
 
hnasrCommented:
From the topics listed, I assumed using Access database.
0
 
Scott Fell, EE MVEDeveloperCommented:
"Is there local help from expert exchange?, or can the communication can be via phone?"  
If you are really over your head and want somebody to help you personally, you can look up experts profile and if they have a listed address, you may contact  them probably on a for hire basis.  But first try here as there is really no question too difficult especially with databases and access.  

Instead of trying to do everything at once, take it in bits by asking separate questions.  The first thing to do is set up your tables.  And before doing that, make sure the data is normalized.  http://en.wikipedia.org/wiki/Database_normalization  

This should really be your first question, getting help on your data tables and possibly reformatting or breaking out your database.
0
 
PortletPaulCommented:
I don't think there is enough information available to advice on your design issues.

e.g. take a well known global supplier like:
IBM

which has smaller entities - such as:
IBM USA
IBM Australia
IBM Europe

Is this one supplier (IBM) or 3? (3 legal entities, different currencies, different taxes etc.)

Will you need a hierarchy of suppliers? e.g. you have both IBM and the many legal entities that belong to IBM.
0
 
Gustav BrockCIOCommented:
You can either use a GUID as autonumber key (select Autonumber/Replication ID when creating the field); or you can use a compound unique key made from one fixed key unique for each location and one traditional (Long) autonumber.

/gustav
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 3
  • 3
  • 2
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now