Previous Topic

Book Contents

Book Index

Next Topic

Creating an M:N Relation

M:N relations are a bit more complex. The most important fact is that the m:n relation must always be built on existing 1:n and n:1 relations. In fact, this type of relation links together two relations (not objects).

There are two types of n:m relations:

When creating a new m:n relation type, the following sequence of wizard pages is available:

  • Page 1: Enables you to select 2 object types which you want to work with.
  • Page 2: Deals with the cardinality selection.
  • Page 3: Deals with the relation mandatoriness.
  • Page 4: Enables you to specify names of the relation attributes.
  • Page 5: Generates the SQL script.
  • Page 6: Prompts you to select a link table with foreign keys to the source and target object types.
  • Page 7: The final step of the m:n relation creation.

Note: The number of pages which the wizard consist of largely depends on the type of relation being created. For instance, creating a transient relation requires less steps than creating an m:n relation.

In This Chapter

Page 1

Page 2

Page 3

Page 4

Page 5

Page 6

Page 7

See Also

Creating Relations: The Relation Wizard

Creating N:1 (1:N) Relations