Re: Record number

From: Larry Linson (bouncer_at_localhost.not)
Date: 08/26/04


Date: Wed, 25 Aug 2004 22:46:19 -0500


"ctdak" wrote

> Thanks for the info. Pardon my ignorance,
> but where is the unique ID of the record
> that you say is a field in the record? I have
> never seen that field.

Generally, some individual field or some combination of fields taken
together uniquely identify each record. That is the "unique id" I was
talking about, not some database-generated property. It is, of course,
possible to create tables that do not have unique records, and thus, no
unique id, but it is rare to see that in a well-designed, normalized,
relational database.

Autonumbers are often used as "surrogate keys" for convenience in creating
joins where it takes a combination of several fields to uniquely identify
the record. Some database designers _always_ use an autonumber surrogate
key, even if the record is uniquely identified by a single field, but that
is an unnecessary complication.

   Larry Linson
   Microsoft Access MVP



Relevant Pages

  • Re: What does everyone else do for graphically displaying data?
    ... The matter of keys is complicated by a tendency for some to overuse integer surrogate keys, without identifying the so-called "natural" key that at least ideally identifies the row based on the attributes represented by the columns. ... This surrogate key should be managed by the database - your object should use it, if at all, only as a very low-level handle for a database row, not for the object' own purposes. ... The equals definition for a Point class would compare tuples where a Polyline class could contain a Collection of Points and have an equals definition that compares the contained Points. ...
    (comp.lang.java.databases)
  • Re: candidate keys in abstract parent relations
    ... relational model has no problem a priori with surrogate keys, ... A common rule within the database design community is to abjure ... constraint to enforce) at least one natural key for each table. ...
    (comp.databases.theory)
  • Re: candidate keys in abstract parent relations
    ... The use of a driver's license number to identify a person is actually the ... > I have never met a database designer yet, including myself, who doesn't ... information industry: content and conveyance. ... Surrogate keys are a hammer. ...
    (comp.databases.theory)
  • Re: Multi-Field Primary Key
    ... Surrogate numeric keys do solve a lot of technical ... problems for database and database application developers and many seasoned ... the judicious use of surrogate keys and often use them myself. ...
    (microsoft.public.access.tablesdbdesign)
  • RE: Inserting a new record into an existing table
    ... One way is to click Queries in the database window (the thing that shows up ... and adding the individual field lets you sort by that field. ... in the midst of wedding planning to accomplish a specific project. ...
    (microsoft.public.access.gettingstarted)