[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: A standard approach to glueing together reusableXMLfragmen


RE:  A standard approach to glueing together reusableXMLfragmen
Rick

But the primary key in such a case is the one thing that establishes the
identity of the record over time - it is a surrogate for the real world
thing that the tuple represents.  Therefore the thing that is chosen to be
the primary key should be a property that is invariant.  If you choose a
property to act as primary key that is not invariant you have two problems.
Firstly the need that you have already identified to update foreign keys
that you know about in order to update them.  Secondly, you have the problem
that you do not necessarily know about other uses of the key - information
may already have been sent on to other systems, which leaves you with the
problem of making references over time to something with no firm identity.

Regards
Chris

-----Original Message-----
From: Rick Marshall [mailto:rjm@z...]
Sent: 26 August 2003 16:32
To: Chris Angus
Cc: michael.h.kay@n...; xml-dev@l...
Subject: RE:  A standard approach to glueing together
reusableXMLfragments in prose?


chris

ok, shoot the example - that's why most use customer numbers. however it
shouldn't be necessary if the name is a primary key - in fact the
customer number and name then become candidate keys and you have to
select one as the primary key - redundant and not normalised properly :(

i coined my terminology around 1980 .....

cheers

rick



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.