Example:
|
|
Attributes can come in different types....
|
|
|
Example:
|
Note:
|
Important fact:
|
Example:
|
|
|
I.e.:
NULL == NULL ===> result is FALSE |
(because NULL means "unavailable", so we don't know the outcome of the equality comparision, thus resulting is FALSE)
E.g., A tire compnay Good-year will call a tire an entity, because it manufacture tires and will need to maintain a lot of information on tires (e.g., how (components) to make it, where it is made, etc - these information will be needed to compute cost/earning for the company)
On the other hand, a car manufacturer - like Honda - would most likely look at a tire as an attribute of a car : it does not care how or where the tire is made, all Honda needs to know is the make of the tire
THAT Accord car has four Good-Year 700 tires
Otherwise, the object is modeled as an attribute