| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Basic question?What 's the key if there 's no FD(Functional Dependencies)?
Aloha Kakuikanu wrote:
> NENASHI, Tegiri wrote:
> > Aloha Kakuikanu wrote:
> > > NENASHI, Tegiri wrote:
> > > > Aloha Kakuikanu wrote:
> > > > > 2. Is the view
> > > > >
> > > > > select name, 'RMI' from (
> > > > > select name from RealPeople
> > > > > minus
> > > > > select name from Impostors
> > > > > )
> > > > > union
> > > > > select name, 'IMR' from (
> > > > > select name from Impostors
> > > > > minus
> > > > > select name from RealPeople
> > > > > )
> > > > > union
> > > > > select name, 'I' from (
> > > > > select name from RealPeople
> > > > > intersect
> > > > > select name from Impostors
> > > > > )
> > > > >
> > > > > updatable?
> > > > >
> > > Seriously, this second view is perfectly updatable.
> >
> > This second view is perfectly non-updatable.
> >
> > Let 'i' be the impostors, 'r' the real people, '+' the union,' -' the
> > minus, & the intersect. Suppose r and i are disjoint. Then, (r-i)
> > 'rmi' + (i-r) 'ima' + (r&i) 'i' can be simplified to r 'rmi' + i 'ima'.
> > You suppose wher the following insert goes, to 'r' or to 'i' ? Why ?
> > Suppose one does not know that r and j are disjoint. Where the
> > following insert goes, to 'r' or to 'i' ? Why ?
>
This is different of your preceding question. You have never said that you insert into RMI. Please you must learn how to pose questions correctly.
The insertion of record is possible only when the realpeople and impostors are disjoint. You have never said that they are. It was me who made the supposition. Please ask the question correctly.
> 2) A record is inserted into IMR. Nothing gets inserted into RMI and
> into I.
The same probleme with the question.
> 3) A record is inserted into I. Nothing inserted into RMI and into IMR.
> 4) Any superposition of 1-3.
The same probleme.
> ... more cases see below
>> > "Suppose we insert 'JanHidders' into the RealPeople" and suppose
> > >Suppose we insert
> > > 'JanHidders' into the RealPeople. Then, in the view we see that a
> > > record
> > >
> > > {(name='JanHidders', typ='RMI')}
> > >
> > > is added. (The "typ" is the name of the second attribute in the view --
> > > I forgot to put an alias in the view definition).
> > >
> > > Now we have one more record in the set
> > >
> > > RealPeople minus Impostors
> > >
> >
>
I do not understand it. Is it that you try to be ironic with the Venn diagram ? You have never said that 'JanHidders' was not an impostor. This is not a legal supposition. Where did it come from ? You must learn to pose questions. The same problem with the statement that realpeople and impostors are disjoint. Where did it come from ?
>
>
The view is not delete updatable. How do you decide from what table to delete ? One can not decide.
> > No it is not correct.
>
This remark can be correct but the transactions are not connected to your questions. Do you want to talk about transacions ? We can talk about them, also.
-- TegiReceived on Wed Nov 08 2006 - 15:28:35 CST
![]() |
![]() |