primary key data

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

TrustPilot

starstarstarstarstar Excellent

  • Home
  • Courses
  • Promotions
  • Schedule
  • Formats
  • Our Clients

Forum home » Delegate support and help forum » Microsoft Access Training and help » Primary key data

Primary key data

resolvedResolved · Medium Priority · Version 2007

Gerardo has attended:
No courses

Primary key data

Hi,

What is the purpose of identifying some data as "primary key"?

Thanks,
Gerardo

RE: Primary key data

Hi Gerardo

The primary key of a relational table uniquely identifies each record in the table. It has to be unique such as employee number or Product code.

A good example would be a table containing all the names of students in a school.

You cannot use the students names as an identifyer because there will certainly be students with the same names but by making the Student ID as the primary key the system will warn you if you try and create a new student with an existing ID number.

The ID number can then be used in other tables to refer to the students

Hope this helps

Carlos

Tue 12 May 2009: Automatically marked as resolved.


 

Access tip:

Dsum

You can create percentage values based on individual products / items by using a Dsum function (used with a grouped query)

[Each value column] / Dsum[field:total for the column needed to be calculated],[tablename]

View all Access hints and tips


Server loaded in 0.07 secs.