![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Given a series of events E1, E2, ... En occurring in time (so E1 occurs from E1(t0) to E1(t1), E2 from E2(t0) to E2(t1) and so on) Given a series of arbitrary conditions (C) happening at one point (t) in time, where the conditions are the simultaneous occurrence of a set of (or combinations of sets of) events E at time t Examples: C1 = E1 & E2 & E3; C2 = (E1 & E2) | E3; C3 = (E1 & E2) | (E3 & E4); |
|
C1(t) would be true if and only if: (E1(t0) <= C1(t) <= E1(t1)) & (E2(t0) <= C1(t) <= E2(t1)) & (E3(t0) <= C1(t) <= E3(t1)) C2(t) would be true if and only if: ((E1(t0) <= C2(t) <= E1(t1)) & (E2(t0) <= C2(t) <= E2(t1))) | (E3(t0) <= C2(t) <= E3(t1)) |
|
My question: How do you implement this in the context of a relational database? Or you simply don't? I've been scratching my head for a couple hours now, this doesn't seem to be my day for it. For those who wonder what this is about, I'm working on a personnel training database. In plain English, the above means: if you have done this and this and this course, or that one, you are qualified, on this date, to do job X. |
#2
| |||
| |||
|
|
"Diego Berge" <dberge (AT) privacy (DOT) net> wrote in message news:bkuv6m$68c7e$1 (AT) ID-186969 (DOT) news.uni-berlin.de... Given a series of events E1, E2, ... En occurring in time (so E1 occurs from E1(t0) to E1(t1), E2 from E2(t0) to E2(t1) and so on) Given a series of arbitrary conditions (C) happening at one point (t) in time, where the conditions are the simultaneous occurrence of a set of (or combinations of sets of) events E at time t Examples: C1 = E1 & E2 & E3; C2 = (E1 & E2) | E3; C3 = (E1 & E2) | (E3 & E4); I'd suggest that time model consistent concatenating events like C1 is much more simple than the one that can accomodate disjunctions like C2 and C3. |
|
C1(t) would be true if and only if: (E1(t0) <= C1(t) <= E1(t1)) & (E2(t0) <= C1(t) <= E2(t1)) & (E3(t0) <= C1(t) <= E3(t1)) C2(t) would be true if and only if: ((E1(t0) <= C2(t) <= E1(t1)) & (E2(t0) <= C2(t) <= E2(t1))) | (E3(t0) <= C2(t) <= E3(t1)) That sounds like constraint database. |
|
My question: How do you implement this in the context of a relational database? Or you simply don't? I've been scratching my head for a couple hours now, this doesn't seem to be my day for it. For those who wonder what this is about, I'm working on a personnel training database. In plain English, the above means: if you have done this and this and this course, or that one, you are qualified, on this date, to do job X. Why time is important at all in this context? If you have done this and this and this course, or that one, you are qualified disregarding the time. |
#3
| |||
| |||
|
|
Why time is important at all in this context? If you have done this and this and this course, or that one, you are qualified disregarding the time. Because the courses are valid for only a certain period of time after which you have to retrain. The database holds both current and historical data. |
#4
| |||
| |||
|
|
My scenario: Given a series of events E1, E2, ... En occurring in time (so E1 occurs from E1(t0) to E1(t1), E2 from E2(t0) to E2(t1) and so on) Given a series of arbitrary conditions (C) happening at one point (t) in time, where the conditions are the simultaneous occurrence of a set of (or combinations of sets of) events E at time t Examples: C1 = E1 & E2 & E3; C2 = (E1 & E2) | E3; C3 = (E1 & E2) | (E3 & E4); C1(t) would be true if and only if: (E1(t0) <= C1(t) <= E1(t1)) & (E2(t0) <= C1(t) <= E2(t1)) & (E3(t0) <= C1(t) <= E3(t1)) C2(t) would be true if and only if: ((E1(t0) <= C2(t) <= E1(t1)) & (E2(t0) <= C2(t) <= E2(t1))) | (E3(t0) <= C2(t) <= E3(t1)) My question: How do you implement this in the context of a relational database? Or you simply don't? I've been scratching my head for a couple hours now, this doesn't seem to be my day for it. For those who wonder what this is about, I'm working on a personnel training database. In plain English, the above means: if you have done this and this and this course, or that one, you are qualified, on this date, to do job X. |
#5
| |||
| |||
|
|
"Diego Berge" <dberge (AT) privacy (DOT) net> wrote in message How do you implement this in the context of a relational database? Try this Joe Celko post http://groups.google.co.uk/groups?hl...g.g oogle.com |
![]() |
| Thread Tools | |
| Display Modes | |
| |