English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

This is with regard to MS Access.

2007-03-07 16:43:52 · 3 answers · asked by usha r 1 in Computers & Internet Programming & Design

3 answers

no, there should only be 1 primary key...for each table..

2007-03-07 16:46:52 · answer #1 · answered by Anonymous · 0 1

Hi,

You can have only one primary key for a table in ms access. A key that links two tables is called a foreign key and a primary key that is made up of a combination of more than one column is called a composite key.

If you need to create data sorted in a different sequence to the prinmary but have faster access then using the "order By" statement, you can create an index over the table concerned.

I found this article:

http://www.ehow.com/how_13622_create-index-microsoft.html

that shows you how to create an index.

Hope this helps

2007-03-08 08:23:11 · answer #2 · answered by jools 3 · 0 0

I am not really sure about MS Access, but yes, there can be more than one primary key in a database. Especially, in RDBMS, you can have more than one primary key, mostly because of the reason that the primary key is a combination of two fields in your table. One key would serve the purpose in simple tables, but you need two keys if you want to join the tables with other tables in the databse, for reporting purposes.

2007-03-08 03:36:44 · answer #3 · answered by A.Samad Shaikh 2 · 0 0

fedest.com, questions and answers