dbTalk Databases Forums  

A different definition of MINUS, Part 3

comp.databases.theory comp.databases.theory


Discuss A different definition of MINUS, Part 3 in the comp.databases.theory forum.



Reply
 
Thread Tools Display Modes
  #41  
Old   
Cimode
 
Posts: n/a

Default Re: A different definition of MINUS, Part 3 - 12-18-2008 , 02:36 PM






On 18 déc, 20:31, Cimode <cim... (AT) hotmail (DOT) com> wrote:
Quote:
Hope this will publish adequately...

R-D= R - (R ∩ D) = R-[(RXD) - (R ∆ D)] = R Â*U R∆D - Â*RXD

R=[{1},{2},{4}]
D= [{1},{3}]

R-D = [{1},{2},{4}] U [{2}, {3}] - [{1, 1}{1, 2}{1, 4} {3, 1} {3, 2}
{3, 4}]
=[{1}{2}{3}{4}] - [{1, 1}{1, 2}{1, 4} {3, 1} {3, 2}{3, 4}]
=[{1}{2}{3}{4}] - [{1}, {3}]
=[{2}{4}]
To be more precise, I should have written

R-D= R - (R ∩ D) = R-[(RXD) - (R ∆ D)] = R U R∆D - DXR --> Does make
a difference when headers are brought into the equation...

Apologies..


Reply With Quote
  #42  
Old   
Cimode
 
Posts: n/a

Default Re: A different definition of MINUS, Part 3 - 12-18-2008 , 02:36 PM






On 18 déc, 20:31, Cimode <cim... (AT) hotmail (DOT) com> wrote:
Quote:
Hope this will publish adequately...

R-D= R - (R ∩ D) = R-[(RXD) - (R ∆ D)] = R Â*U R∆D - Â*RXD

R=[{1},{2},{4}]
D= [{1},{3}]

R-D = [{1},{2},{4}] U [{2}, {3}] - [{1, 1}{1, 2}{1, 4} {3, 1} {3, 2}
{3, 4}]
=[{1}{2}{3}{4}] - [{1, 1}{1, 2}{1, 4} {3, 1} {3, 2}{3, 4}]
=[{1}{2}{3}{4}] - [{1}, {3}]
=[{2}{4}]
To be more precise, I should have written

R-D= R - (R ∩ D) = R-[(RXD) - (R ∆ D)] = R U R∆D - DXR --> Does make
a difference when headers are brought into the equation...

Apologies..


Reply With Quote
  #43  
Old   
Cimode
 
Posts: n/a

Default Re: A different definition of MINUS, Part 3 - 12-18-2008 , 02:36 PM



On 18 déc, 20:31, Cimode <cim... (AT) hotmail (DOT) com> wrote:
Quote:
Hope this will publish adequately...

R-D= R - (R ∩ D) = R-[(RXD) - (R ∆ D)] = R Â*U R∆D - Â*RXD

R=[{1},{2},{4}]
D= [{1},{3}]

R-D = [{1},{2},{4}] U [{2}, {3}] - [{1, 1}{1, 2}{1, 4} {3, 1} {3, 2}
{3, 4}]
=[{1}{2}{3}{4}] - [{1, 1}{1, 2}{1, 4} {3, 1} {3, 2}{3, 4}]
=[{1}{2}{3}{4}] - [{1}, {3}]
=[{2}{4}]
To be more precise, I should have written

R-D= R - (R ∩ D) = R-[(RXD) - (R ∆ D)] = R U R∆D - DXR --> Does make
a difference when headers are brought into the equation...

Apologies..


Reply With Quote
  #44  
Old   
Cimode
 
Posts: n/a

Default Re: A different definition of MINUS, Part 3 - 12-18-2008 , 02:36 PM



On 18 déc, 20:31, Cimode <cim... (AT) hotmail (DOT) com> wrote:
Quote:
Hope this will publish adequately...

R-D= R - (R ∩ D) = R-[(RXD) - (R ∆ D)] = R Â*U R∆D - Â*RXD

R=[{1},{2},{4}]
D= [{1},{3}]

R-D = [{1},{2},{4}] U [{2}, {3}] - [{1, 1}{1, 2}{1, 4} {3, 1} {3, 2}
{3, 4}]
=[{1}{2}{3}{4}] - [{1, 1}{1, 2}{1, 4} {3, 1} {3, 2}{3, 4}]
=[{1}{2}{3}{4}] - [{1}, {3}]
=[{2}{4}]
To be more precise, I should have written

R-D= R - (R ∩ D) = R-[(RXD) - (R ∆ D)] = R U R∆D - DXR --> Does make
a difference when headers are brought into the equation...

Apologies..


Reply With Quote
  #45  
Old   
Cimode
 
Posts: n/a

Default Re: A different definition of MINUS, Part 3 - 12-18-2008 , 02:36 PM



On 18 déc, 20:31, Cimode <cim... (AT) hotmail (DOT) com> wrote:
Quote:
Hope this will publish adequately...

R-D= R - (R ∩ D) = R-[(RXD) - (R ∆ D)] = R Â*U R∆D - Â*RXD

R=[{1},{2},{4}]
D= [{1},{3}]

R-D = [{1},{2},{4}] U [{2}, {3}] - [{1, 1}{1, 2}{1, 4} {3, 1} {3, 2}
{3, 4}]
=[{1}{2}{3}{4}] - [{1, 1}{1, 2}{1, 4} {3, 1} {3, 2}{3, 4}]
=[{1}{2}{3}{4}] - [{1}, {3}]
=[{2}{4}]
To be more precise, I should have written

R-D= R - (R ∩ D) = R-[(RXD) - (R ∆ D)] = R U R∆D - DXR --> Does make
a difference when headers are brought into the equation...

Apologies..


Reply With Quote
  #46  
Old   
Cimode
 
Posts: n/a

Default Re: A different definition of MINUS, Part 3 - 12-18-2008 , 02:36 PM



On 18 déc, 20:31, Cimode <cim... (AT) hotmail (DOT) com> wrote:
Quote:
Hope this will publish adequately...

R-D= R - (R ∩ D) = R-[(RXD) - (R ∆ D)] = R Â*U R∆D - Â*RXD

R=[{1},{2},{4}]
D= [{1},{3}]

R-D = [{1},{2},{4}] U [{2}, {3}] - [{1, 1}{1, 2}{1, 4} {3, 1} {3, 2}
{3, 4}]
=[{1}{2}{3}{4}] - [{1, 1}{1, 2}{1, 4} {3, 1} {3, 2}{3, 4}]
=[{1}{2}{3}{4}] - [{1}, {3}]
=[{2}{4}]
To be more precise, I should have written

R-D= R - (R ∩ D) = R-[(RXD) - (R ∆ D)] = R U R∆D - DXR --> Does make
a difference when headers are brought into the equation...

Apologies..


Reply With Quote
  #47  
Old   
vadimtro@gmail.com
 
Posts: n/a

Default Re: A different definition of MINUS, Part 3 - 12-18-2008 , 03:17 PM



On Dec 17, 8:12*pm, "Brian Selzer" <br... (AT) selzer-software (DOT) com> wrote:
Quote:
Regardless of how many possible values there can be for a database, only one
can actually be the value of the database at any set point in time.
Algebraic expressions derive information from the actual value of the
database; updates, on the other hand, assert which possible value for the
database is also the actual value. *Common sense tells us to discard a
result that is based upon a false premise, so it follows that the result of
an algebraic expression that involves a possible value for the database that
is not also the actual value is just as useless. *The algebra and the
calculus are therefore limited in their utility to answering queries from
the actual value of the database and have absolutely nothing to do with
selecting which possible value is also the actual value. *In other words,
neither the algebra nor the calculus are sufficient when it comes to
database updates. *As a consequence, a 'purely algebraic' approach hereis
contraindicated.
Purely algebraic approach,,,, all the way to go. Consider a linear (or
more general polynomial system), e.g.

x + y = t
x - y = s

It is a mapping of input set of variables (vector) into an output set.
To extend the analogy to view updates, we also have an input delta
vector mapped into the output delta. In this particular example, it is
easy to establish that the view update problem (that is calculating
input delta vector from output one) is well defined.

Contrast this to relational model where a view is a mapping from a set
of base relations into some output relation variable. We have two
differences
i. The algebra
ii. The number of equations, because a view is defined as a single
equation

I never understood why view update problem is scoped to a single view.
In a typical usage scenario -- database schema evolution -- a set of
base tables is substituted with a set of views, and the user can see
the whole update transaction as affecting multiple views. Therefore,
it is not unreasonable to generalize view updates to a *system* of
view equations. Why do we want to do that? Two reasons:
1. Database constraints are equations, and this generalization is a
natural way to encompass them.
2. Information preservation. This one is easier to explain by the
familiar linear system example. If there is not enough (linearly
independent) equations, then there is a fundamental ambiguity of the
inverse map that calculates input delta vector from the output.




Reply With Quote
  #48  
Old   
vadimtro@gmail.com
 
Posts: n/a

Default Re: A different definition of MINUS, Part 3 - 12-18-2008 , 03:17 PM



On Dec 17, 8:12*pm, "Brian Selzer" <br... (AT) selzer-software (DOT) com> wrote:
Quote:
Regardless of how many possible values there can be for a database, only one
can actually be the value of the database at any set point in time.
Algebraic expressions derive information from the actual value of the
database; updates, on the other hand, assert which possible value for the
database is also the actual value. *Common sense tells us to discard a
result that is based upon a false premise, so it follows that the result of
an algebraic expression that involves a possible value for the database that
is not also the actual value is just as useless. *The algebra and the
calculus are therefore limited in their utility to answering queries from
the actual value of the database and have absolutely nothing to do with
selecting which possible value is also the actual value. *In other words,
neither the algebra nor the calculus are sufficient when it comes to
database updates. *As a consequence, a 'purely algebraic' approach hereis
contraindicated.
Purely algebraic approach,,,, all the way to go. Consider a linear (or
more general polynomial system), e.g.

x + y = t
x - y = s

It is a mapping of input set of variables (vector) into an output set.
To extend the analogy to view updates, we also have an input delta
vector mapped into the output delta. In this particular example, it is
easy to establish that the view update problem (that is calculating
input delta vector from output one) is well defined.

Contrast this to relational model where a view is a mapping from a set
of base relations into some output relation variable. We have two
differences
i. The algebra
ii. The number of equations, because a view is defined as a single
equation

I never understood why view update problem is scoped to a single view.
In a typical usage scenario -- database schema evolution -- a set of
base tables is substituted with a set of views, and the user can see
the whole update transaction as affecting multiple views. Therefore,
it is not unreasonable to generalize view updates to a *system* of
view equations. Why do we want to do that? Two reasons:
1. Database constraints are equations, and this generalization is a
natural way to encompass them.
2. Information preservation. This one is easier to explain by the
familiar linear system example. If there is not enough (linearly
independent) equations, then there is a fundamental ambiguity of the
inverse map that calculates input delta vector from the output.




Reply With Quote
  #49  
Old   
vadimtro@gmail.com
 
Posts: n/a

Default Re: A different definition of MINUS, Part 3 - 12-18-2008 , 03:17 PM



On Dec 17, 8:12*pm, "Brian Selzer" <br... (AT) selzer-software (DOT) com> wrote:
Quote:
Regardless of how many possible values there can be for a database, only one
can actually be the value of the database at any set point in time.
Algebraic expressions derive information from the actual value of the
database; updates, on the other hand, assert which possible value for the
database is also the actual value. *Common sense tells us to discard a
result that is based upon a false premise, so it follows that the result of
an algebraic expression that involves a possible value for the database that
is not also the actual value is just as useless. *The algebra and the
calculus are therefore limited in their utility to answering queries from
the actual value of the database and have absolutely nothing to do with
selecting which possible value is also the actual value. *In other words,
neither the algebra nor the calculus are sufficient when it comes to
database updates. *As a consequence, a 'purely algebraic' approach hereis
contraindicated.
Purely algebraic approach,,,, all the way to go. Consider a linear (or
more general polynomial system), e.g.

x + y = t
x - y = s

It is a mapping of input set of variables (vector) into an output set.
To extend the analogy to view updates, we also have an input delta
vector mapped into the output delta. In this particular example, it is
easy to establish that the view update problem (that is calculating
input delta vector from output one) is well defined.

Contrast this to relational model where a view is a mapping from a set
of base relations into some output relation variable. We have two
differences
i. The algebra
ii. The number of equations, because a view is defined as a single
equation

I never understood why view update problem is scoped to a single view.
In a typical usage scenario -- database schema evolution -- a set of
base tables is substituted with a set of views, and the user can see
the whole update transaction as affecting multiple views. Therefore,
it is not unreasonable to generalize view updates to a *system* of
view equations. Why do we want to do that? Two reasons:
1. Database constraints are equations, and this generalization is a
natural way to encompass them.
2. Information preservation. This one is easier to explain by the
familiar linear system example. If there is not enough (linearly
independent) equations, then there is a fundamental ambiguity of the
inverse map that calculates input delta vector from the output.




Reply With Quote
  #50  
Old   
vadimtro@gmail.com
 
Posts: n/a

Default Re: A different definition of MINUS, Part 3 - 12-18-2008 , 03:17 PM



On Dec 17, 8:12*pm, "Brian Selzer" <br... (AT) selzer-software (DOT) com> wrote:
Quote:
Regardless of how many possible values there can be for a database, only one
can actually be the value of the database at any set point in time.
Algebraic expressions derive information from the actual value of the
database; updates, on the other hand, assert which possible value for the
database is also the actual value. *Common sense tells us to discard a
result that is based upon a false premise, so it follows that the result of
an algebraic expression that involves a possible value for the database that
is not also the actual value is just as useless. *The algebra and the
calculus are therefore limited in their utility to answering queries from
the actual value of the database and have absolutely nothing to do with
selecting which possible value is also the actual value. *In other words,
neither the algebra nor the calculus are sufficient when it comes to
database updates. *As a consequence, a 'purely algebraic' approach hereis
contraindicated.
Purely algebraic approach,,,, all the way to go. Consider a linear (or
more general polynomial system), e.g.

x + y = t
x - y = s

It is a mapping of input set of variables (vector) into an output set.
To extend the analogy to view updates, we also have an input delta
vector mapped into the output delta. In this particular example, it is
easy to establish that the view update problem (that is calculating
input delta vector from output one) is well defined.

Contrast this to relational model where a view is a mapping from a set
of base relations into some output relation variable. We have two
differences
i. The algebra
ii. The number of equations, because a view is defined as a single
equation

I never understood why view update problem is scoped to a single view.
In a typical usage scenario -- database schema evolution -- a set of
base tables is substituted with a set of views, and the user can see
the whole update transaction as affecting multiple views. Therefore,
it is not unreasonable to generalize view updates to a *system* of
view equations. Why do we want to do that? Two reasons:
1. Database constraints are equations, and this generalization is a
natural way to encompass them.
2. Information preservation. This one is easier to explain by the
familiar linear system example. If there is not enough (linearly
independent) equations, then there is a fundamental ambiguity of the
inverse map that calculates input delta vector from the output.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.