Assignment No. 3: ND ST
Assignment No. 3: ND ST
SHIVA
NI SINGH RE2801 B55
Sol -:1
No we can’t achieve 2nd normal form without using the concept of
1st normal form.this can be shown in following example.
Sol2
If more than one attributes of a single relation have relationships
then this is termed as functional dependency because one
attributes depends on the other for providing complete detail. It is
associated with the normalization because normalization is a
technique that is used to remove these functional dependencies
in order to represent the information in simple way or in shape of
tables.
Functional Dependencies are fundamental to the process of
Normalization Functional Dependency describes the
relationship between attributes(columns) in a table.
For example, if A and B are attributes of a table, B is functionally
dependent on A, if each value of A is associated with exactly one
value of B (so, you can say, 'A functionally determines B').
Normalization Process
• Fourth Normal Form (4NF) 4NF is a stronger normal
form than BCNF as it prevents Tables from containing
nontrivial Multi-Valued Dependencies (MVDs) and hence data
redendancy.
The Normalization of BCNF Tables to 4NF involves the
removal of MVDs from the Table by placing the attribute(s)
in a new Table along with the copy of the determinant(s).
Sol
- The relation R(A,B,C,D,E,F) have the set of dependency among
the their attributes as:
According to the given functional dependency:
F->CD
Because A->CD and F->A
And also F->CD and F->DE
So that F->D
Therefore the relation R2(A,F,D) is a correct decomposition.
And also F->E so we can make the relation R3(E,F).
Now the remaining attributes A,B,C and B->C , so there is another
relation form that is R1(A,B,C).
Partially of relation R in R1,
So all the three decomposition R2 and R3 are
commited
correct according to commited
the rule of functio0nal dependency.
active
Read(a)
Temp=a*.1;
A:=a-temp;
Write (a);
Read (b);
B:=b+50;
Write b
Read (b);
B:=b+temp;
Write (b)
Because we are able to find a serial transcation similar to the 1st
transcatin by swapping read(a) and write (b) because these are
the swapping of different data item which has no effect on
transcation and then swapping and then read b with read a
because in case of operation on similar data only read operation
has no effect on swapping .so by doing two swapping we show
that table 1 transcation and table 2 transcation are conflict
serializable.
3)for each data item Q ,the transcation (if any) that perform final
write(Q) operation in schedule S must perform the final write(Q)
operation in schedule S’.
Example
Transcation T3 transcation T4
Read(Q)
Write(Q)
Write (Q)
Transcation T3 transcation T4
transcation T6
Read(Q)
Write(Q)
Write (Q)
Write(Q)
The schedule is view serializable with above transcation .it is view
equivalent to the serial schedule<T3,T4,T6> since the one
read(Q) instruction reads the initial value of Q in both schedule
and T6 perform the final write of Q in both schedule.
Transcation T4 and T6 perform write(Q) operation without having
performed a read(Q) operation .write of this sort is called blind
writes .
Sol 6
Sol 6