| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: MERGE as the imperative form of aggregation
"paul c" <toledobythesea_at_oohay.ac> wrote in message news:zhLUh.83055$DE1.35612_at_pd7urf2no...
> Brian Selzer wrote:
> > That example relation looks like a cheat, being about part locations and > trying to do double duty for part movements. Could be mysticism too - > every time I see that word "primative" it makes me think of apes, suspect > it's used by anthropologists but surely not many of them! >
Why would you have a separate table for part movements? All that is needed is the current locations for parts. I should probably have stated that I compressed the table definition for brevity. The actual constraint would have restricted movement of parts from one location other than Receiving to another other than Shipping unless the transaction being processed is an inventory transfer (in another table). Because of the limitations of the DBMS, it was not possible to implement it even with triggers, so I was forced to add logic to enforce the constraint to every stored procedure and application that updated the table.
For some reason I was thinking of apes, too. Must have something to do with the people I work with. I even ran a spell check because I thought it looked funny. Who'd a thunk it!
> I say play the ball where it lies and declare the relations one really > wants. I don't see the need for the word "states" either, if one wants a > dbms to retain all historical values, so be it, even though the few > attempts at that I've seen failed to fly. Talk of operators that infer > previous values of unmentioned relations seems like subterfuge. >
I'm not talking about a temporal database. There's no need to retain history to enforce transition constraints. All that is needed is what is currently committed to the database and the information submitted by the user when he issues a modification.
> By the way, I don't think assignment is necessary, therefore it's not > primitive. But I have no idea whether it's primative! > > pReceived on Mon Apr 16 2007 - 10:47:44 CDT
![]() |
![]() |