database - What is the difference between Max Cardinality and Min Cardinality? -


i having hard time understanding difference between max , min cardinalities when trying design database.

remember cardinality relationship thing.

max cardinality(cardinality) 1 or many. class has relationship package b cardinality of one, means @ there can 1 occurance of class in package. opposite package has max cardnality of n, mean there can n number of classes

min cardinality(optionality) means "required." 0 or 1. 0 mean 0 or more, 1 ore more

there tons of articles out there explain this, including explain how property "diagram". thing can search cardinality/optionality (omg terms) explains same thing, optionality "min" cardinality "max",


from http://www.databasecentral.info/faq.htm

q: can see how maximum cardinality used when creating relationships between data tables. however, don't see how minimal cardinality applies database design. missing?

a: correct in noticing maximum cardinality more important characteristic of relationship minimum cardinality is. minimum cardinality tells minimum allowed number of rows table must have in order relationship meaningful. example, basketball team must have @ least 5 players, or not basketball team. minimum cardinality on player side 5 , minimum cardinality on team side one.

one can argue person cannot player unless on team, , minimum cardinality of team mandatory. organization cannot basketball team unless has @ least 5 players. minimum cardinality of players mandatory also. 1 argue in opposite direction too. when player quits team, cease team until replacement recruited? cannot engage in games, cease team? example of fact each individual situation must evaluated on own terms. truth in particular instance? next time similar situation arises, decision might different, due different circumstances.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -