Information! (1 Viewer)

mohammadagul

PrinceAtif
Local time
Today, 23:40
Joined
Mar 14, 2004
Messages
298
What is a Difference Between Index And RelationsShip?
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 15:40
Joined
Feb 19, 2002
Messages
43,768
An index for a table is very much like the index for a book. It is a separate table (hidden) that contains an entry for each key value along with the address of the record that contains it. An index is used to increase the efficiency of finding records.

A relationship is a connection between two tables. It is used to enforce referential integrity so as to prevent the creation of orphan records. It doesn't make any sense for example, to have an order detail if there is no parent order. The relationship is also used to prevent the entry of bad data. You wouldn't want to allow an invalid customerID to be added to an Order. You wouldn't be able to get paid if you didn't know who placed the order.
 

mohammadagul

PrinceAtif
Local time
Today, 23:40
Joined
Mar 14, 2004
Messages
298
i know i have to set realtionships between parent and child table, but how do i set the index. Please Explain.
 

benti

New member
Local time
Today, 21:40
Joined
Aug 11, 2004
Messages
8
Take the table in Design View.
Select then Indexes from View in the Menu Bar.
Make the wanted changes.
 

Users who are viewing this thread

Top Bottom