Академический Документы
Профессиональный Документы
Культура Документы
School: LSTCA
Depar
tment:CSE/IT
Section: E1802A22
Ans1-: No we Can’t achieve 2NF without the 1NF. For 2NF we must have all the attributes in first
normal form and non key attributes are fully dependent on primary key attributes.
2NF-: For a relation to be in second normal form we have the following conditions-
4100 IT 30 Rs.200
Here in this example (order_no,b_name ) act as the composite key i.e the primary key. So the
attribute quantity is determined by the combination of these two attributes . B_price can be
detrmined with the only attribute B_name. So in the 2NF we can divide the following table into
two tables showing functional dependency.
1) For the 2NF all the non key attributes should be fully functionally dependent on
primary key of the relation.
The example given in the above question explains the concept of functional dependency in the
2NF. Inthis way functional dependency is fully associated with the process of
normalization i.e it helps inderiving first three normal forms of normalization.
Question 4: Draw the state diagram showing various states of a transaction. Also give the
workingof this diagram.
Acti
ve
abo
fail
rted
ed
Question 5: Make a comparison between conflict and view serializability with an example.
Ans5-: Serializibility is the concept which helps in understanding the non serial schedule which is
causing problems and which has same results as that of the transactions which are part of the
schedule.
S1 S2 S3
T1 T2 T1 T2 T1 T2
S1 S2 S3
T1 T2 T1 T2 T1 T2
Ans6-:Yes , the ACID properties of transactions are essential to ensure the integrity of data.
Following are the properties-
1)Atomicity-: It means that the whether all the changes are made to transaction and no change is
made. For example we have two accounts A and B we want to transfer money from
account A to B.This means money is to be subtracted from account A and added to account B.
A c c o r d i n g t o t h i s property both these operations made simultaneously or none is made.
2)Isolation-: This means that when the two users are using same database the changes
will bemade both of them concurrently i.e the data used during the execution of one transaction
cannot be usedby the other transaction until the first one is completed.
=========================