![]() | |
#31
| |||
| |||
|
|
paul c wrote: Bob Badour wrote: paul c wrote: ... Didn't mean to suggest otherwise. Sometimes the immediate expert objection to the 'primrose path' turns out to be an advantage if the idea is allowed to breath. But one point seems very immediate to me - for any given relational expression, there is only one equivalent extension. I don't follow that at all. If you mean the last sentence, I could expand it by saying that for any given purpose, in other words any given application, I think that single extension must have one interpretation. Since the expression might not involve any algebraic operations, I think it is best to discard those in the interpretation, no matter how the extension was formed. I say 'best' because that seems sufficient to me and I don't see how including those ops is necessary. I would like to know what problems this causes, eg., I don't see that inconsistences/contradictions or loss of utility or inability to optimize result from it. I cannot make sense of what you wrote. |
#32
| |||
| |||
|
|
Bob Badour wrote: paul c wrote: Bob Badour wrote: paul c wrote: ... Didn't mean to suggest otherwise. Sometimes the immediate expert objection to the 'primrose path' turns out to be an advantage if the idea is allowed to breath. But one point seems very immediate to me - for any given relational expression, there is only one equivalent extension. I don't follow that at all. If you mean the last sentence, I could expand it by saying that for any given purpose, in other words any given application, I think that single extension must have one interpretation. Since the expression might not involve any algebraic operations, I think it is best to discard those in the interpretation, no matter how the extension was formed. I say 'best' because that seems sufficient to me and I don't see how including those ops is necessary. I would like to know what problems this causes, eg., I don't see that inconsistences/contradictions or loss of utility or inability to optimize result from it. I cannot make sense of what you wrote. Best I can do at the moment without a clue or two. If Bob B doesn't get any part of it either there is little point embellishing or possibly I have lapsed into mysticism, will reserve judgment for now. Oh well, that's life. |
#33
| |||
| |||
|
|
I suspect you simply do not include enough context to decipher what you are saying. If I have a relation variable, R, at any given time, its extension is simply its value. Is it not? Since R can have different values at different times, it can have more than one extension; albeit, only one at a time. |
#34
| |||
| |||
|
|
Bob Badour wrote: ... I suspect you simply do not include enough context to decipher what you are saying. If I have a relation variable, R, at any given time, its extension is simply its value. Is it not? Since R can have different values at different times, it can have more than one extension; albeit, only one at a time. Thanks, I'll ponder that. The only comments I want to make right now are i) that I prefer to avoid talking about relvars until some choice of language is made, which choice seems premature, eg., I can imagine an environment where the programmer's context doesn't include assignment, and ii) I think expressions have a value and extensions have a value (maybe you are more pertinent saying that they are values, not sure) and those two values are equivalent in Codd's RM context - my attitude about equality as far as machines are concerned is that it should be determined only by typical machine-level comparison instructions which I hope keeps various language notions of equality out of the picture as far as interpreting values is concerned. This is perhaps narrower or stricter than most people want, maybe it's an unnecessary distinction too but I'd rather be careful about it. |
#35
| |||
| |||
|
|
In logic, a relation is the extension of a predicate, and a predicate is the characteristic function of a relation. When talking about relational databases, sometimes one has to be clear about the internal predicate and the external predicate. At any given time, one will generally find fewer tuples in any relation variable than the internal predicate would allow because some parts of the predicate are not amenable to calculating or to expressing algebraically. ... |
#36
| |||
| |||
|
|
Bob Badour wrote: ... In logic, a relation is the extension of a predicate, and a predicate is the characteristic function of a relation. When talking about relational databases, sometimes one has to be clear about the internal predicate and the external predicate. At any given time, one will generally find fewer tuples in any relation variable than the internal predicate would allow because some parts of the predicate are not amenable to calculating or to expressing algebraically. ... Do you mean certain negations and disjunctions aren't amenable, such as the predicate "it is not the case that the temperature T in city C is T degrees"? (Thanks for the precision, still pondering the rest.) |
#37
| |||
| |||
|
|
paul c wrote: .... Do you mean certain negations and disjunctions aren't amenable, such as the predicate "it is not the case that the temperature T in city C is T degrees"? (Thanks for the precision, still pondering the rest.) No. First, you have T representing 2 different measures so I cannot understand your example. I mean the predicate for "Employee, EmpID, manages department, DeptNo" is too complex to calculate or to represent algebraically. It has all sorts of complex factors that generally never get recorded anywhere such as someone had to apply for a job with the company and that person had to perform well enough to get promoted to management (not necessarily at this company) etc. ... |
#38
| |||
| |||
|
|
In general, the database describes part of the predicate, called the internal predicate. The actual predicate (external predicate) has additional factors not described in the database except for the extension of the predicate itself: the relation. |
#39
| |||
| |||
|
|
Bob Badour wrote: paul c wrote: ... Do you mean certain negations and disjunctions aren't amenable, such as the predicate "it is not the case that the temperature T in city C is T degrees"? (Thanks for the precision, still pondering the rest.) No. First, you have T representing 2 different measures so I cannot understand your example. I mean the predicate for "Employee, EmpID, manages department, DeptNo" is too complex to calculate or to represent algebraically. It has all sorts of complex factors that generally never get recorded anywhere such as someone had to apply for a job with the company and that person had to perform well enough to get promoted to management (not necessarily at this company) etc. ... And thank goodness for that! And you have not heard the best part...yet... |
#40
| |||
| |||
|
|
... I would be glad to hear how we establish a valid quantifier in relational algebra using only internal predicates. ... |
![]() |
| Thread Tools | |
| Display Modes | |
| |