![]() | |
#81
| |||
| |||
|
|
Constraints specify what can be true, not what is supposed to be true. ... |
#82
| |||
| |||
|
|
Mr. Scott wrote: ... Constraints specify what can be true, not what is supposed to be true. ... I thought constraints constrain, ie., limit. (I've often thought that isn't enough in practice, eg., I've never seen a default defined algebraically and beyond that I wouldn't mind a variation on constraints that lets me force an assertion, eg., some tuple that is always present, whether the user has thought to include it or not, probably CJ Date would disagree with that.) |
#83
| |||
| |||
|
|
paul c wrote: Mr. Scott wrote: ... Constraints specify what can be true, not what is supposed to be true. ... I thought constraints constrain, ie., limit. (I've often thought that isn't enough in practice, eg., I've never seen a default defined algebraically and beyond that I wouldn't mind a variation on constraints that lets me force an assertion, eg., some tuple that is always present, whether the user has thought to include it or not, probably CJ Date would disagree with that.) I cannot make sense of what you wrote. I suspect you have omitted much context, internal dialogue and assumptions. |
#84
| |||
| |||
|
|
Mr. Scott wrote: ... Constraints specify what can be true, not what is supposed to be true. ... I thought constraints constrain, ie., limit. (I've often thought that isn't enough in practice, eg., I've never seen a default defined algebraically and beyond that I wouldn't mind a variation on constraints that lets me force an assertion, eg., some tuple that is always present, whether the user has thought to include it or not, probably CJ Date would disagree with that.) |
#85
| |||
| |||
|
|
Mr. Scott wrote: ... Table definitions are constraints. View definitions are queries. ... I detect some mysticism here. There has to be a reason to distinguish b between 'table' and 'view' this way, otherwise we don't need both terms. What is the reason (or reasons)? |
#86
| |||
| |||
|
|
Bob Badour wrote: paul c wrote: Mr. Scott wrote: ... Constraints specify what can be true, not what is supposed to be true. ... I thought constraints constrain, ie., limit. (I've often thought that isn't enough in practice, eg., I've never seen a default defined algebraically and beyond that I wouldn't mind a variation on constraints that lets me force an assertion, eg., some tuple that is always present, whether the user has thought to include it or not, probably CJ Date would disagree with that.) I cannot make sense of what you wrote. I suspect you have omitted much context, internal dialogue and assumptions. I usually try to omit at least two out of three of those, otherwise even I can't guess what I'm talking about! Being of a minimalist persuasion, not wanting more concepts than I can handle, I think I'd rather have constraints, unlike CJ Date's, that are applied against values without requiring them to be 'truth-valued' and 'and-ed' if you will. I don't have a good name for this. |
#87
| |||
| |||
|
|
paul c wrote: .... I usually try to omit at least two out of three of those, otherwise even I can't guess what I'm talking about! Being of a minimalist persuasion, not wanting more concepts than I can handle, I think I'd rather have constraints, unlike CJ Date's, that are applied against values without requiring them to be 'truth-valued' and 'and-ed' if you will. I don't have a good name for this. If not truth-valued, what would they be? Either something passes the constraint or it doesn't. |
#88
| |||
| |||
|
|
Mr. Scott wrote: Constraints specify what can be true, not what is supposed to be true. |
|
I thought constraints constrain, ie., limit. (I've often thought that isn't enough in practice, eg., I've never seen a default defined algebraically and beyond that I wouldn't mind a variation on constraints that lets me force an assertion, eg., some tuple that is always present, whether the user has thought to include it or not, probably CJ Date would disagree with that.) |
#89
| |||
| |||
|
|
[...] Constraints specify what can and cannot be assigned a positive truth value, they do not specify what has been assigned a positive truth value. Queries manipulate what has been assigned a positive truth value or what can be derived from what has been assigned a positive truth value. |
#90
| |||
| |||
|
|
Mr. Scott wrote: [...] Constraints specify what can and cannot be assigned a positive truth value, they do not specify what has been assigned a positive truth value. Queries manipulate what has been assigned a positive truth value or what can be derived from what has been assigned a positive truth value. Formally: a database instance is a set of named relations, i.e. a mapping from names to relations. A database is a set of possible database instances, such that each instance maps the same names to relations with, per name, the same signature. It is defined by a database schema (which maps each relation name to its signature) and database constraints (which limit the possible combinations of relations to which the names are mapped). (I can go on and define 'signature', etc.) A database constraint is a predicate on database instances. A 'table' (in this context) is a named relation in a database instance, or perhaps a database restricted to that name (i.e. a relation name mapped to the set of all possible values for that relation). A 'view' (in this context) is a named mapping from database instances to relations. -- Reinier |
![]() |
| Thread Tools | |
| Display Modes | |
| |