Professional Documents
Culture Documents
Assignment 3: Course Title: Database Systems (CSE 351)
Assignment 3: Course Title: Database Systems (CSE 351)
3
Course Title: Database Systems (CSE 351)
Submitted To:
Submitted by :
Mr. Ramandeep Singh Gurneet Singh
RA1803 A43
PART – A
Solution:
Step1: try to have single value attributes on dependent side i.e R.H.S
Solution:
BCD+=BCDAFGE
BC+=BCED
A+=AFG
F+=FG
C+=CD
Hence BCD contains all the attributes of the realtion R(ABCDEFG). Thus BCD is the
Primary KEy
Now we will convert this into 2NF, for that we will remove the partial dependencies
that exist in the given FD set.
BC -> E
C -> D
Thus we remove the dependent from the relation R and create a new relation taking
a copy of its determinant.
i.e
in 2NF
BCE
CD
ABCFG
Now for converting it into 3NF we need to remove transitive dependencies, there are
3 of them
A -> F
F -> G
A -> G
Thus we remove the dependent from the relation R and create a new relation taking
a copy of its determinant.
i.e
in 3NF
AF
FG
AG
BCE
CD
ABCFG
Now all of the above keys are candidate keys in their relations. Hence the above 3NF
is already in BCNF.
T1 T2 T3
PART – B
READ(A)
4. A Schedule S : Is this Schedule Conflict
Schedule S READ(B)
Serializable ? If yes, What is the
WRITE(A
Equivalent Serial Schedule ?
)
READ(A)
WRITE(B)
READ(B)
WRITE(A
)
WRITE(B
)
READ(C)
WRITE(C
READ(C)
)
WRITE(C
WRITE(B)
)
Solutin:- Yes ,this Schedule is Conflict Serializable.
5. Make a list of Security Concerns for a Bank. For each item on your
list, state whether this concern relates to physical security, human
security, operating system security, or database security.
Solution:
6. Which normal form is more desirable ? Justify your answer with the
help of an example ?
Solution:
3NF is more desirable normal form as there are less chances or no scope of
lossy decomposition till this normal form.
For example:
The customer number varies with the order number and it doesn't appear to
depend upon any of the other fields. Unit Price could be dependent upon the
customer number in a situation where we charged each customer a set price.
However, it appears we sometimes charge the same customer different prices.
Therefore, the unit price is fully dependent upon the order number. The
quantity of items also varies from order to order.
The total can be derived by multiplying the unit price by the quantity,
therefore it's not fully dependent upon the primary key. We must remove it
from the table to comply with the third normal form.
The 3NF does not employ any lossy decomposition, thus it is more desirable
normal form.
4NF is more desirable than BCNF because it reduces the repetition of information. If
we consider a BCNF schema not in 4NF, we observe that decomposition into 4NF
does not lose information provided that a lossless join decomposition is used, yet
redundancy is reduced.
*******