header part of the value?



Occasionally the question has come up as to whether a
relation value is the body, or the body+the header. In the past
I've sided with the just-the-body approach, but today I decided
that I don't think that anymore.

Consider the algorithm to perform a natural join on two
relation values. Just values: not tables in a database
with a known schema or whatever. Just two plain relation
values. The natural join specification *requires* the header;
it is defined (in part) in terms of the header. So the header
must be part of the value.

Of course, that then leads me to think of a relation value
as a <header, body> tuple. (Let us omit column type
information for the present discussion.) Then one imagines
an updatable relation variable in a database as holding
a value of this tuple type. BUT then we notice that we
have this restriction that the header must not be updated.
Why is that?

Certainly in practice this is the sort of thing that would
be almost universally a good idea. But what theoretical
basis does it have? I can think of none. So I propose,
for your amusement, the mental model that a relation
variable is merely a simple binding from a name to a
<header, body> relation value, period, full stop. Also,
*customarily* the variable has the update constraint
that old.header = new.header.


Marshall
.



Relevant Pages

  • Re: mail merge
    ... yes the data source is an database and the mail merge type is a ... meant that the data source is and access database. ... Doug Robbins - Word MVP ... and by header you mean header as in the header ...
    (microsoft.public.word.mailmerge.fields)
  • Re: mail merge
    ... merge from directory (access database) ... Doug Robbins - Word MVP ... meant that the data source is and access database. ... and by header you mean header as in the ...
    (microsoft.public.word.mailmerge.fields)
  • Re: mail merge
    ... Doug Robbins - Word MVP ... going to get with a Directory type mail merge. ... would be better to have a field in the database into which the ... address auto-populate two fields in the header of the document. ...
    (microsoft.public.word.mailmerge.fields)
  • Re: $_GET, MySQL, query variable
    ... if the database holds ids 1-30 and the user enters ... Check if you got the id sent, if not redirect with a header to another page ... PHP parser when we can use fast pure html? ...
    (alt.php)
  • Re: mail merge
    ... would be better to have a field in the database into which the appropriate ... Doug Robbins - Word MVP ... and by header you mean header as in the ... will be repeated for each record in the data source. ...
    (microsoft.public.word.mailmerge.fields)