判别一个关系是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.
分享到:
相关推荐
Identifying-Medical-Diagnoses-and-Treatable-Diseases-by-Image-Based_2018_Cel.pdf
Step 12: Identifying and Protecting User Accounts Step 13: Authorizing Transactions Step 14: Storing Transaction Data Step 15: Using the Data Store Step 16: Protecting the Data Store Step 17: ...
Identifying Encrypted Malware Traffic with Contextual Flow Data 识别加密网络流量中包含的威胁会带来一系列独特的挑战。监视此流量中是否存在威胁和恶意软件很重要,但是必须以保持加密完整性的方式进行监视。...
一篇关于如何识别多实例数据中的异常点的技术论文。
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 ...
Hot Topic Propagation Model and Opinion Leader Identifying Model in Micro-blog Network
Yelp-Project-in-identifying-categories-and-projecting-top-5-positives-and-negatives Yelp - 识别业务类别和查找业务的主要正面/负面项目在本项目中,您将有机会练习从 Z534 课程中学到的信息检索和文本挖掘方法...
从很多的水果中找出指定的水果,并在找到的水果上标记下来。
JAccount-identifying-code-cracker 工具:在交大JAAccount网站上说出识别码是什么
识别与症状状态相关的基因
These documents shall not in any way preclude any member or non-member of SCTE from manufacturing or selling products not conforming to such documents, nor shall the existence of such standards ...
In this paper, we propose a novel density based spatial clustering algorithm called K-DBSCAN with the main focus of identifying clusters of points with similar spatial density. This contrasts with ...
Identifying Interest Flooding in Named-Data Networking
利用python3+tesseract实现验证码中,只识别红色字符的完整代码。
A review of the computational methods for identifying the over-annotated genes and missing genes in microbial genomes
利用Windows自带的声卡采集器,通过麦克风将声音采集。将录制的声音分为一系列频率,将基频进行比较,从而进行简单的声音识别。
ANSI IES LM-61-20 Identifying Operating Factors for Installed High Intensity Discharge Luminaires.pdf
Identifying Attention Deficit Hyperactive Disorder with the WISC-R and the Stroop Color and Word Test 28 Eaves, Darch, Mann, and Vance LEWIS-O'DONNELL, M. (1986) A comparison study of fhe ...
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, ...