19.09.2015 Views

Confessions of an IT Manager_Phil Factor

  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

282 The Ballad <strong>of</strong> the Tuple Relation<br />

You might be thinking 'Phew, hot stuff', but I couldn't make much sense <strong>of</strong><br />

it. In fact, were I ever to be abducted by extraterrestrial aliens, I will expect<br />

them to address me in similar unfathomable clicks <strong>an</strong>d whirrs before<br />

conducting their foul experiments upon my person.<br />

It was whilst I was fruitlessly re-reading the definition for the fifth time,<br />

trying to decipher some me<strong>an</strong>ing from it, I beg<strong>an</strong> to wonder whether, in fact, it<br />

was a poem. I give the first two reson<strong>an</strong>t st<strong>an</strong>zas<br />

Let r be a relation <strong>an</strong>d I will tell you why;<br />

let the heading <strong>of</strong> r be partitioned into subsets {X} <strong>an</strong>d {Y}.<br />

Let the attributes <strong>of</strong> {Y} be Yl, Y2, ..., Yn; also<br />

let {X} not contain <strong>an</strong>y attribute called YR though.<br />

The heading, now, <strong>of</strong> s consists <strong>of</strong> {X} extended by<br />

<strong>an</strong> attribute YR <strong>of</strong> type RELATION {Y}.<br />

The body <strong>of</strong> s is defined as follows: See!<br />

first, let z be the result <strong>of</strong> r WRAP ({Y} AS YT).<br />

Second, for each distinct X value x in z,<br />

(a) let yr be the relation whose tuples be<br />

all <strong>an</strong>d only those YT values, as <strong>an</strong>yone expects<br />

from tuples in z in which the X value is x;<br />

... <strong>an</strong>d so on. Quite the sort <strong>of</strong> output one might expect <strong>of</strong> a post-modernist<br />

poet.<br />

But then, after having extracted as much amusement out <strong>of</strong> the paragraphs<br />

as I could, I felt a certain twinge <strong>of</strong> sadness. Robyn <strong>an</strong>d I are both firmly <strong>of</strong> the<br />

belief there is nothing in relational database theory or practice that c<strong>an</strong>not be<br />

explained to <strong>an</strong> interested child. SQL is merely a formalised dialect <strong>of</strong> English<br />

that describes action. I firmly believe that a relational database c<strong>an</strong> be made so<br />

simple that <strong>an</strong>y educated person c<strong>an</strong> use it. Codd formalised the theory for the<br />

automation <strong>of</strong> existing processes that existed long before the first computers. It<br />

is the l<strong>an</strong>guage <strong>of</strong> information retrieval.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!