Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the differences between that line in oracle ERD?

Tags:

sql

oracle

erd

What is the differences between that relationship lines in oracle ERD?

enter image description here

like image 920
AYETY Avatar asked Oct 15 '13 14:10

AYETY


2 Answers

There are several notations to represent an entity-relationship model. The one you are looking at is called Barker's notation where the relationship(line) is divided into two halves. Each half can be either solid (relationship is mandatory) or dashed (relationship is optional) and you can read those relationships as follows:

  1. Solid half and solid half - relationship is mandatory.

    Each computer must have a hard drive, and one hard drive must be installed into one computer.

  2. Dashed half and solid half - relationship is mandatory on the right and optional on the left:

    Each computer must have a hard drive, and one hard drive may or may not be installed into one computer. (will be vise verse if right side of the relationship is dashed and the left one is solid )

  3. Dashed half and dashed half - relationship is optional.

    Each computer may or may not have a hard drive, and one hard drive may or may not be installed into one computer.

Same goes for one to many and many to many relationships.

like image 125
Nick Krasnov Avatar answered Sep 28 '22 00:09

Nick Krasnov


Dashed line indicates minimum cardinality of relation can be zero, continuos line indicates minimum cardinality of relation is at least one.

Show this interesting document

like image 37
Joe Taras Avatar answered Sep 28 '22 00:09

Joe Taras