Definition

Cardinality is the uniqueness and relationship properties of data in databases. Expressed in 1:1, N:M, and 1:N, it indicates the number of occurrences of one entity that can be linked with similar cases of another database entity. Cardinality is essential as it enhances the integrity and consistency of data in the database.

This relationship also symbolizes the total instances of one entity linked with nothing, one, or several cases of a different entity in a database, such as 1:1 (one-to-one relationship), 1:N (one-to-many relationship), and N:M (many-to-many relationship).

Examples of Cardinality