`

identifying relationship or non-identifying relationship

    博客分类:
  • db
 
阅读更多
   判别一个关系是Non-Identifying还是Identifying只要区分子实体的主键,看是否需要父实体的外键来共同作为主键,需要则为Identifying,如果子实体自己的主键就可唯一标识则它为Non-Identifying!

以下是具体的定义:

ER模型中只允许二元联系,n元联系必须定义为n个二元联系。根据实际的业务需求和规则,使用实体联系矩阵来标识实体间的二元关系,然后根据实际情况确定出连接关系的势、关系名和说明,确定关系类型,是标识关系、非标识关系(强制的或可选的)还是非确定关系、分类关系。

如果子实体的每个实例都需要通过和父实体的关系来标识,则为标识关系,否则为非标识关系。非标识关系中,如果每个子实体的实例都与而且只与一个父实体关联,则为强制的,否则为非强制的。如果父实体与子实体代表的是同一现实对象,那么它们为分类关系。非强制的非标识关系,用带菱形的虚线表示。

—————————–

Identifying and non-identifying relationships An identifying relationship means that the child table cannot be uniquely identified without the parent. For example, you have this situation in the intersection table used to resolve a many-to-many relationship where the intersecting table’s Primary Key is a composite of the left and right (parents) table’s Primary Keys.

Example…
Account (AccountID, AccountNum, AccountTypeID)
PersonAccount (AccountID, PersonID, Balance)
Person(PersonID, Name)

The Account to PersonAccount relationship and the Person to PersonAccount relationship are identifying because the child row (PersonAccount) cannot exist without having been defined in the parent (Account or Person). In other words: there is no personaccount when there is no Person or when there is no Account.

A non-identifying relationship is one where the child can be identified independently of the parent ( Account – AccountType)

Example…
Account( AccountID, AccountNum, AccountTypeID )
AccountType( AccountTypeID, Code, Name, Description )

The relationship between Account and AccountType is non-identifying because each AccountType can be identified without having to exist in the parent table.

You can define the relationship type (identifying/non identifying) in the DeZign for Databases in the relationship dialog. Double click on the relationship line in the diagram window to display the relationship dialog.

分享到:
评论

相关推荐

    ROSE数据库资料

    我们可以使用 Identifying Relationship 和 Non-identifying Relationship 两个工具来建立表之间的关系。 四、ROSE 数据库设计优点 1. 快速设计数据库 使用 ROSE 2003,我们可以快速设计和实现数据库,从而提高...

    用Rational-Rose来建立数据库表.doc

    在本文中,我们设置了三个表之间的关系,使用Identifying Relationship和Non-identifying Relationship两个工具建立主外键关系。 九、总结 本文通过使用Rational-Rose建立数据库表,展示了数据库设计的重要性和...

    SSD7 选择题。Multiple-Choice

    What is an identifying owner in an ER model? (a) The entity upon which a weak entity's existence depends (b) The relationship that identifies a weak entity's owner (c) The entity upon which a ...

    Using CiviCRM.epub

    CiviCRM is a web-based, open source CRM system, designed specifically to meet the needs of advocacy, non-profit and non-governmental organizations. Elected officials, professional/trade associations, ...

    Erwin使用说明书

    - **非标识关系(Non-Identifying Relationship)**:实体1的键不是实体2的主键,但作为外键存在。 Erwin的工具栏提供了丰富的功能,如放大缩小模型视图、切换模型类型、编辑主题域、保存模型、打印、比较模型等,...

    数据库模型设计.pdf

    ERWIN中常见的概念包括实体(Entity)、实体类别(Sub-category)、识别关系(Identifying relationship)以及非识别关系(Non-identifying relationship)。实体是数据模型中的基础对象,它可以代表现实世界中的任何事物。...

    statistica 全套教程包括数据挖掘

    This is particularly useful for identifying potential predictors or patterns within the data. The **t-Tests** (independent samples, dependent samples, single sample) are used to compare means ...

    报销数据库设计.doc

    - **非识别关系**(Non-identifying relationship)允许父表数据删除,但只清除子表的外键引用,而非删除子表数据。 - **视图关系**可能是为了数据展示或权限控制而创建的虚拟表。 通过这样的数据库设计,报销...

    SAP BW Tables

    **Purpose:** This table defines the relationship between process chains and events, enabling the execution of multiple events within a single process chain. **Use Cases:** - Automating complex ...

    Database Processing Fundamentals, Design, and Implementation (12th Edition).rar

    Mixed Identifying and Nonidentifying Patterns The For-Use-By Pattern Recursive Patterns The Data Modeling Process The College Report The Department Report The Department/Major Report The Student ...

    Introduction_to_Optimum_Design.pdf

    - **Two-Phase Simplex Method:** Explains how artificial variables are used to handle problems with equality constraints or non-basic variables. - **Postoptimality Analysis:** Discusses the sensitivity...

    ISO/IEC 27005:2011-EN

    Iso and iEC shall not be held responsible for identifying any or all such patent rights 0m-0sz ISO/EC 27005 was prepared by Joint Technical Committee ISO/EC JTC 1, Information technology ...

    software architecture复习资料(包含考点)

    software architecture复习资料(包含考点)外教课 大部分附有中文翻译 1.Please summarise the state of the art of current...Recognition that structure influences non-functional ‘qualities’ of a system [76]

    python3.6.5参考手册 chm

    PEP 446: Newly Created File Descriptors Are Non-Inheritable Improvements to Codec Handling PEP 451: A ModuleSpec Type for the Import System Other Language Changes New Modules asyncio ensurepip ...

Global site tag (gtag.js) - Google Analytics