Re: teaching relational basics to people, questions
Date: Mon, 14 Dec 2009 11:33:33 -0800 (PST)
Message-ID: <d84d3f25-b398-4c35-b97d-9155baaefab4_at_o9g2000prg.googlegroups.com>
On Dec 4, 4:26 pm, com..._at_hotmail.com wrote:
> So please start out with what the designer gives, then tell me clearly
> how to form the proposition is that is "the information represented by
> each row" that is syntactically valid, then what the proposition is
> that is "the information content of a table".
On Dec 11, 12:07 am, com..._at_hotmail.com wrote:
> Thanks, but this is no clearer.
Mr. Scott,
I received an early xmas gift from my database designer: a relational dbms. Its database has relation variables vr{A,B,C,D} and vs{A,X} with respective predicates pr(A,B,C,D) and ps(A,X). Observing the world I can determine for a particular tuple whether a given predicate is true with corresponding attributes/parameters substituted. All attributes are of the same type.
At some point when the database reflects the world:
If pr(a,b,c,d) is true, what does this imply about the tuples in vr?
If pr(a,b,c,d) is false, what does this imply about the tuples in vr?
If a tuple <a,b,c,d> is in vr, what does this imply about the world,
in terms of pr?
If a tuple <a,b,c,d> is not in vr, what does this imply about the
world, in terms of pr?
What does vr imply about the world?
What does the database imply about the world?
Each of the following queries returns a relation. For each query, what
does the returned value imply about the world?
vr
vr project all but {A}
vr join vs
vr minus relation{A a',B b',C c',D d'}
Maybe you don't consider these to be appropriate questions. If so
please give precise rules mapping between the world and the database
state and between queries and predicates.
philip