Description of five relationships of Er-studio

Source: Internet
Author: User

1. Identifying Relationship:1 to many.

The primary key of the parent entity is the foreign key (FK1) of the child entity, and FK1 is the primary key.

2. No identifying, mandatory relationship:1 to many.

The primary key of the parent entity is the foreign key (FK1) of the child entity, and the FK1 is not empty.

3. No identifying, optional relaotionship:1 to many.

The primary key of the parent entity is the foreign key (FK1) of the child entity, and FK1 can be empty.

4. One-to-one relationship:1 to 1.

The primary key of the parent entity is the foreign key (FK1) of the child entity, and FK1 can be empty.

5. Non-specific relationship: Many to many.

The parent entity and the child entity are many-to-many relationships. In fact ER studio will automatically generate an intermediate table.

=============================================

Identifying relationship: Need to provide a foreign key to another table as a joint primary key

Non-identifying Mandatory Relationship: Force foreign key

non-identifying Optional Relationship: Optional foreign key

One-to-one relationship non-specific: no special relationship

Word Explanation:

Identifying: identification;

Mandatory: An order, a compulsion, a duty

Optional: Optional, not obligatory, elective

Specific: Clear, exact, exhaustive

Determine whether a relationship is non-identifying or identifying as long as the primary key of the area molecule entity, see if need the parent entity's foreign key to common as the primary key, the need is identifying, If the child entity's own primary key is uniquely identifiable, it is non-identifying.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.