Multivalued Dependency (MVD) in DBMS
Last Updated :
13 Jun, 2024
In Database Management Systems (DBMS), multivalued dependency (MVD) deals with complex attribute relationships in which an attribute may have many independent values while yet depending on another attribute or group of attributes. It improves database structure and consistency and is essential for data integrity and database normalization.
MVD or multivalued dependency means that for a single value of attribute 'a' multiple values of attribute 'b' exist. We write it as,
a --> --> b
It is read as a is multi-valued dependent on b. Suppose a person named Geeks is working on 2 projects Microsoft and Oracle and has 2 hobbies namely Reading and Music. This can be expressed in a tabular format in the following way.
ExampleProject and Hobby are multivalued attributes as they have more than one value for a single person i.e., Geeks.
What is Multivalued Dependency?
When one attribute in a database depends on another attribute and has many independent values, it is said to have multivalued dependency (MVD). It supports maintaining data accuracy and managing intricate data interactions.
Multi Valued Dependency (MVD)
We can say that multivalued dependency exists if the following conditions are met.
Conditions for MVD
Any attribute say a multiple define another attribute b; if any legal relation r(R), for all pairs of tuples t1 and t2 in r, such that,
t1[a] = t2[a]
Then there exists t3 and t4 in r such that.
t1[a] = t2[a] = t3[a] = t4[a]
t1[b] = t3[b]; t2[b] = t4[b]
t1[c] = t4[c]; t2[c] = t3[c]
Then multivalued (MVD) dependency exists. To check the MVD in given table, we apply the conditions stated above and we check it with the values in the given table.
ExampleCondition-1 for MVD
t1[a] = t2[a] = t3[a] = t4[a]
Finding from table,
t1[a] = t2[a] = t3[a] = t4[a] = Geeks
So, condition 1 is Satisfied.
Condition-2 for MVD
t1[b] = t3[b]
And
t2[b] = t4[b]
Finding from table,
t1[b] = t3[b] = MS
And
t2[b] = t4[b] = Oracle
So, condition 2 is Satisfied.
Condition-3 for MVD
∃c ∈ R-(a ∪ b) where R is the set of attributes in the relational table.
t1[c] = t4[c]
And
t2[c]=t3[c]
Finding from table,
t1[c] = t4[c] = Reading
And
t2[c] = t3[c] = Music
So, condition 3 is Satisfied. All conditions are satisfied, therefore,
a --> --> b
According to table we have got,
name --> --> project
And for,
a --> --> C
We get,
name --> --> hobby
Hence, we know that MVD exists in the above table and it can be stated by,
name --> --> project
name --> --> hobby
Conclusion
- Multivalued Dependency (MVD) is a form of data dependency where two or more attributes, other than the key attribute, are functionally independent on each other, but these attributes depends on the key .
- Data errors and redundancies may result from Multivalued Dependency.
- We can normalize the database to 4NF in order to get rid of Mutlivalued Dependency.
Similar Reads
Partial Dependency in DBMS Databases are structured to handle cases where some data relies on only part of a key, not the whole key. In this case we can say data is partially dependent. Partial dependency is similar to a functional or strong dependency, as it shows a constrained relationship between two or more attributes in
6 min read
Multivalued Dependency and Fourth Normal Form In database management systems, normalization is an essential process to ensure that data is organized efficiently and effectively. Multivalued dependency (MVD) is a concept that helps to identify and eliminate data redundancy and anomalies, and Fourth Normal Form (4NF) is a normalization form that
5 min read
Fully Functional Dependency in DBMS In the case of database management systems (DBMS), knowledge of dependencies is vital for the base built on this and it is a must for the development of the database that is most useful and practical. Special interdependency, which is expressed in the schema of the database, is based on the rule of
4 min read
Join Dependencies in DBMS Join Dependency (JD) can be illustrated as when the relation R is equal to the join of the sub-relations R1, R2,..., and Rn are present in the database. Join Dependency arises when the attributes in one relation are dependent on attributes in another relation, which means certain rows will exist in
5 min read
What is Functional Dependency in DBMS? Functional dependency in DBMS is an important concept that describes the relationship between attributes (columns) in a table. It shows that the value of one attribute determines the other. In this article, we will learn about functional dependencies and their types. Functional dependencies help mai
5 min read