Skip to main content

Database Normalization

Functional dependencies is dealing with one to one or one to many attributes. It can be trivial dependency or non trivial dependency. Let's get into some ffurther detail, if left hand side is totally independent of right hand side then it is known as non trivial dependency. For example A->B is a non trivial functional dependency if A and B both are independent of each other.
And a functional dependency is trivial functional dependency if left hand side have all the attributes that are at the right hand side of the functional dependency. Trivial means obvious, its obvious that if we have all the attributes on Right hand side at left hand side then the dependency follow.

Before getting into Normal forms let us get familiar to closure set of attributes. Simple steps to find closure set of attributes:
1) Equate attribute to X for which closure needs to be identified. 
2) Take functional dependencies one by one and check whether left hand side of functional dependency is available in X. If so, check whether right hand side of functional dependency is there in X or not and if those attributes are absent add them to X. Loop this step till no more attributes can be added to X from the given dependency. 
3) When no more attributes can be added to X, it will give us the closure set of the attributes which were taken in step 1. 

Closure set of attributes is used to identify some more functional dependencies and sometimes it also helps in identifying candidate keys. Some other uses of closure set includes identifying equivalence of functional dependencies and find irreducible set of functional dependencies and many more...


Comments

Popular posts from this blog

Facebook Login In PHP

As we all know Time is Money. When there's a long form on your site for registration you could sometimes lose your visitors. To make this registration step a success, adding a small social login button to your site may cut down lot of burden on visitors side and will help you in getting more attention on your data rather than wasting time on the lengthy registration process. By doing so visitor will be glad to see that you care for their precious time.   What do you think will there be anyone in this small world who is not having a Facebook account? According to recent stats 1 in every 13 person in this world is using facebook.

USB Boot Procedure

Simple step-by-step solution to create a bootable usb in cmd: 1)   Take a pen drive of more than 4gb . 2)   Now the most important step is to open cmd from start->search program and files->type cmd . 3)   Now in the new window, type diskpart and hit enter. 4)   Type the command list disk . Now, note the disk which have size identical to that of your pen drive. eg. disk 1. 5)   Type the command select disk 1 . 6)   Then type clean and hit enter. 7)   Just type create partition primary and press enter. 8)  Then run the command list partition . 9)  Type select partition 1 and hit enter. 10) Format it using the command format fs=ntfs . 11) Type the commands active , assign and exit in sequence. Now just copy all the files from Boot-able disc of  windows 7 to the pen drive and your pen drive is ready to be used as a boot-able device.