Found 428 Articles for DBMS

Explain join dependency in DBMS

Bhanu Priya
Updated on 06-Jul-2021 12:50:47

13K+ Views

Join dependency is a constraint which is similar to functional dependency or multivalued dependency. It is satisfied if and only if the relation concerned is the join of a certain number of projections. Such type of constraint is called join dependency.Let's consider a special class of join dependencies which help to capture data dependencies present in a hierarchical data structure.Example 1The above hierarchical organization informs regarding ward and patients currently admitted to a ward depend only on the hospital but not the facilities present in that hospital. Since hospitals have multiple wards, functional dependencies are not adequate to describe the ... Read More

What is the basic purpose of a Database Management system(DBMS)?

Bhanu Priya
Updated on 06-Jul-2021 12:50:18

3K+ Views

To understand why database management systems are necessary, let's look at a typical "file processing system" supported by conventional operating systems.ExampleTake an application in a saving bank. Saving accounts and customer records are kept in permanent system files.Application programs are written to manipulate files to perform some tasks like follows −Debit or credit an account.Add a new account.Find an account balance.Generate monthly statements.Development of the system proceeds as new application programs must be written as the need arises, new permanent files are created as required, but over a long period of time files may be in different formats and application ... Read More

Create an example table that is in its first normal form(DBMS)

Bhanu Priya
Updated on 06-Jul-2021 12:39:23

323 Views

If a table has data redundancy and is not properly normalized then it will be difficult to handle and update. If a relation contains composite or multivalued attributes it violates the first normal form.A table is in 1Nf if the following conditions exist −There are only single valued attributes.Attribute domain does not change.There is a unique name for every attribute or column.The order in which data is stored does not matter.ExampleConsider the table given below −IdNameCourse1AC1, C22EC33BC2, C3The above table is in un normalized form, the course attribute is having multivalued attributes which violates 1NF.Now we represent the above table ... Read More

Which normal form is the highest that satisfies the functional dependencies(DBMS)?

Bhanu Priya
Updated on 06-Jul-2021 12:38:00

876 Views

Let's take the dependencies F= {AB->CDEF, AF->ED, F->B} which ONE of the following is the highest normal form that a table R=ABCDEF could satisfy.Select any one from the following −No normal form would be satisfied.Boyce-Codd Normal Form1st Normal Form2nd Normal Form3rd Normal FormGiven Functional dependencies of F are as follows −AB ---> CDEFAF ---> EDF ---> BNow in R.H.S (Right Hand Side) of Functional dependencies of F, attributes B, C, D, E, F are all present but attribute A is missing. So, attribute A must be the part of Super Key.We have to find the closure of A (A+), A+ ... Read More

Explain how normal forms can be transformed from lower to higher(DBMS)

Bhanu Priya
Updated on 06-Jul-2021 12:35:42

267 Views

In the database management system there are several rules to manage the tables and do the changes like insertion, deletion, updatation and there are different stages at which the tables are organized and these stages are known as normal forms.It is a standard structure of relational databases in which a relation may be inserted in another relation.Five normal formsThere are five normal forms which are explained below −First normal formThe first normal form defines the definition of the table. The rules of the first normal form are as follows −Each column must have a single value.Each column has a unique ... Read More

Explain 5NF with examples in DBMS

Bhanu Priya
Updated on 06-Jul-2021 12:31:44

1K+ Views

It is also called as project join normal form. A relation R is in 5NF if it is in 4NF and there is no join dependency. No join dependency means lossless-join decomposition.Decomposition is lossless-join decomposition if it preserves all the data in original relation and does not result in additional tuples.A relation R satisfies join dependency iff R is equal to the join of R1, R2, .....Rn where Ri are a subset of the set of attributes of R.Relation RDeptSubjectNameCSECAmmuCSECAmarCSEJavaAmarITCbhanuHere, dept ->-> subjectdept->-> nameThe above relation is in 4NF. Anomalies can occur in relation in 4NF if the primary key ... Read More

What is 4NF in DBMS?

Bhanu Priya
Updated on 06-Jul-2021 12:30:36

6K+ Views

A relation R is in 4NF if it is in BCNF and there is no non-trivial multivalued dependency.For a dependency A->B, if for a single value of A, multiple values of B exist, then the relation will be a multi-valued dependency.ExampleConsider the following tableRegnoPhonenoQualification1P1Diploma1P1B.Tech1P1M.Tech1P2Diploma1P2B.Tech1P2M.TechHere, regno->-> phonenoregno->-> qualification.Both are non trivial MVDThe given relation is in BCNF [since no functional dependency exists]. But the above table is not in 4NF [since there is a non trivial MVD].AnomaliesIt also suffers with anomalies which are as follows −Insertion anomaly: If we want to insert a new phoneno for regno3 then we have to ... Read More

What is multivalued dependency in DBMS?

Bhanu Priya
Updated on 06-Jul-2021 12:25:13

8K+ Views

Multivalued dependency (MVD) is having the presence of one or more rows in a table. It implies the presence of one or more other rows in that same table. A multivalued dependency prevents fourth normal form. A multivalued dependency involves at least three attributes of a table.It is represented with a symbol "->->" in DBMS.X->Y relates one value of X to one value of Y.X->->Y (read as X multidetermines Y) relates one value of X to many values of Y.A Nontrivial MVD occurs when X->->Y and X->->z where Y and Z are not dependent are independent to each other. Non-trivial ... Read More

Explain BCNF with an example in DBMS

Bhanu Priya
Updated on 31-Oct-2023 21:09:34

49K+ Views

BCNF (Boyce Codd Normal Form) is the advanced version of 3NF. A table is in BCNF if every functional dependency X->Y, X is the super key of the table. For BCNF, the table should be in 3NF, and for every FD. LHS is super key.ExampleConsider a relation R with attributes (student, subject, teacher).StudentTeacherSubjectJhansiP.NareshDatabasejhansiK.DasCsubbuP.NareshDatabasesubbuR.PrasadCF: { (student, Teacher) -> subject (student, subject) -> Teacher Teacher -> subject}Candidate keys are (student, teacher) and (student, subject).The above relation is in 3NF [since there is no transitive dependency]. A relation R is in BCNF if for every non-trivial FD X->Y, X must be a key.The ... Read More

Check which FD violates 3NF in a given relation and decompose R into 3NF(DBMS)

Bhanu Priya
Updated on 06-Jul-2021 12:23:40

4K+ Views

A relation is in 3NF when it is in 2NF and there is no transitive dependency or a relation is in 3NF when it is in 2NF and all non-key attributes directly depend on candidate key.Third normal form (3NF) is the third step in normalizing a database and it builds on the first and second normal forms, 1NF and 2NF.3NF states that all column references in referenced data that are not dependent on the primary key should be removed. Another way of putting this is that only foreign key columns should be used to reference another table, and no other ... Read More

Advertisements