![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
In crow foot notation, is there a diference between a dotted vs a solid line as 1:1 and 1:n have both options. (solid or dotted) |
#3
| |||
| |||
|
|
SpreadTooThin: In crow foot notation, is there a difference between a dotted vs a solid line as 1:1 and 1:n have both options. ( or dotted) Dotted means: zero or more. Solid means: one or more (required relationship). -- Ericki ahh! so it could be 1:0 |
#4
| |||
| |||
|
|
SpreadTooThin: In crow foot notation, is there a diference between a dotted vs a solid line as 1:1 and 1:n have both options. (solid or dotted) Dotted means: zero or more. Solid means: one or more (required relationship). |
#5
| |||
| |||
|
|
Am 28.01.2011 20:22, schrieb Erick T. Barkhuis: SpreadTooThin: In crow foot notation, is there a diference between a dotted vs a solid line as 1:1 and 1:n have both options. (solid or dotted) Dotted means: zero or more. Solid means: one or more (required relationship). That's not correct. Dotted means: unidentifying relationship. Solid means: identifying relationship. An identifying relationship is one, where the foreign key is also part of the primary key. AFAIK an identifying relationship should be used, when the foreign key must not change. The OPs example with customers and orders in another thread is IMHO a good example: When an order is created, it always "belongs" to a customer. And the customer of the order can not change (normally). So here I would use an identifying relationship, making the ID of the customer a part of the PK of the order. On the other hand, if you have a table with countries and a FK to a country in the customer's address, that would be an unidentifying relationship, because the country of a customer may change. zero or more vs. one ore more is a matter of the cardinality and is displayed like that in crow foot notation: zero or more: >o----- one or more: *>|----- http://www2.cs.uregina.ca/~bernatja/crowsfoot.html Helmut |
#6
| |||
| |||
|
|
Am 28.01.2011 20:22, schrieb Erick T. Barkhuis: SpreadTooThin: In crow foot notation, is there a diference between a dotted vs a solid line as 1:1 and 1:n have both options. (solid or dotted) Dotted means: zero or more. Solid means: one or more (required relationship). That's not correct. Dotted means: unidentifying relationship. Solid means: identifying relationship. http://www2.cs.uregina.ca/~bernatja/crowsfoot.html |
#7
| |||
| |||
|
|
Helmut Chang: Am 28.01.2011 20:22, schrieb Erick T. Barkhuis: SpreadTooThin: In crow foot notation, is there a diference between a dotted vs a solid line as 1:1 and 1:n have both options. (solid or dotted) Dotted means: zero or more. Solid means: one or more (required relationship). That's not correct. Dotted means: unidentifying relationship. Solid means: identifying relationship. http://www2.cs.uregina.ca/~bernatja/crowsfoot.html You're right, Helmut. I was thinking of the Oracle CASE Notation, which uses dotted and solid lines differently:http://cisnet.baruch.cuny.edu/holowc...yrelationship/ [When you're getting older, having many standards available is becoming a luxury: there's always something that makes you look right, even when you're confused...] :-) -- Erick |
#8
| |||
| |||
|
|
1:n means... the customer can have 0 to n orders, but there is no notation that says that there must be at least 1. (In the ERD editor of mysql) |
![]() |
| Thread Tools | |
| Display Modes | |
| |