Re: Traversing large data table

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Joe Celko (jcelko212_at_earthlink.net)
Date: 11/02/04


Date: Tue, 02 Nov 2004 14:12:05 -0800

a quote from Dr. Codd: "..Database users may cause the system to
generate or delete a surrogate, but they have no control over its value,
nor is its value ever displayed to them ..."(Dr. Codd in ACM TODS, pp
409-410) and Codd, E. (1979), Extending the database relational model to
capture more meaning. ACM Transactions on Database Systems, 4(4). pp.
397-434.

Sounds pretty clear to me. What part of "no control over" and "nor ever
displayed" did I miss?

To me this means that a surrogate ought to act like an index; created by
the user, managed by the system and NEVER seen by a user. For example,
Sybase SQL Anywhere does a nice job of building pointer chains to
co-ordinate PK-FK relationships and cascade their DRI actions, but you
do not get to do pointer arithmetic, re-seed them or anything else like
you do in T-SQL.

--CELKO--
Please post DDL, so that people do not have to guess what the keys,
constraints, Declarative Referential Integrity, datatypes, etc. in your
schema are. Sample data is also a good idea, along with clear
specifications.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Relevant Pages

  • Re: Guidelines to a decent support of surrogate key implementation
    ... totally unrelated to the logical data model. ... A surrogate key is system generated to replace the actual key ... with a quote from Dr. Codd: ... Extending the database relational model to capture more meaning. ...
    (comp.databases.theory)
  • Re: [NOW ANSWER Aarons QUESTION CELKO]
    ... True surrogates are fine; ... surrogate keys Dr. Codd was refering to when he wrote: ... Codd in ACM TODS, pp 409-410) and Codd, E., Extending the ... database relational model to capture more meaning. ...
    (microsoft.public.sqlserver.programming)
  • Re: Set Based Row Duplication
    ... Surrogate Keys are keys in the usual Relational sense but have the following specific properties: ... Their values serve solely as surrogate for the entities they stand for ...... ... When a new entity is inserted into the database, it is given a surrogate key value that has never been used before and will never be used again, even if the entity in question is subsequently deleted. ... A quote from Dr. Codd: "..Database users may cause the system to ...
    (microsoft.public.sqlserver.programming)
  • Re: Traversing large data table
    ... > generate or delete a surrogate, but they have no control over its value, ... > nor is its value ever displayed to them ..."(Dr. Codd in ACM TODS, ...
    (microsoft.public.sqlserver.programming)
  • Re: Negative Numbers in "Identity" or" Autonumber" fields
    ... WHAT IS A SURROGATE KEY? ... A quote from Dr. Codd: "..Database users may cause the system to ... "There are three difficulties in employing user-controlled keys as ...
    (comp.databases.theory)