On TechRepublic: Why Android beats iPhone
BNET Business Network:
BNET
TechRepublic
ZDNet
TalkBack 5 of 6:
Next »
« Previous
To be relational
All data must be represented as relations and only as relations.

Every tuple in a relation must be unique otherwise it is, by definition, not a relation.

If you do the following:

CREATE TABLE person
(person_id integer NOT NULL primary key,
name varchar(30) NOT NULL);

INSERT INTO person
VALUES (1, "John Smith");

INSERT INTO person
VALUES (2, "John Smith");

SELECT name FROM person;

Gives the result

name
----

John Smith
John Smith

As this result contains duplicates it is not a relation.

Data is thus represented in a way other than relations.

Therefore no DBMS based on SQL can be relational.

If you think this is just nit-picking think about the consequences for interchangeability, that is, from a user or programmer perspective there is no distiction between base relations (tables) and derived relations (views). If you had a view based on the select I have defined above it wouldn't be a relation.

Now think about the implications for allowing views to be updated.

Why has no SQL vendor implemented view updateability beyond the most trivial cases? The answer lies in the complications introduced by SQLs illogical tolerance of duplicates.

Now think about how many thousands of lines of code would be saved if you had an RDBMS with view updateability properly implemented.
Posted by: jorwell   Posted on: 08/04/05 You are currently: a Guest | Members login | Terms of Use

Alert moderator to an offensive message

Subscribe to this discussion via Email or RSS

Difficult to understand the point  jorwell | 08/04/05
I'm Clueless About These Things...  bill@... | 08/04/05
A book you could read  jorwell | 08/04/05
RDBMS  michael_t | 08/04/05
To be relational  jorwell | 08/04/05
Better to recommend good source material  jorwell | 08/04/05

What do you think?

SponsoredWhite Papers, Webcasts, and Downloads

advertisement
Premier Vendor Content Whitepapers, webcasts & resources from our Power Center Sponsors
  • Smart Tech Expert advice on innovations in healthcare and the green technologies that make it happen. Find out more
  • Smart Business Discussion and advice on management issues that revolve around making your world smarter and more useful. More Smart Advice
  • Smart People The best and worst moves in the management and strategy trenches. Learn More