![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi all, I am trying to get my head around DB theory, I have the following information regarding an airplane, AIRPLANE manufacturer, type, serial number, purchase date, length, weight, Span, max. flying altitude, What I am trying to figure out is if airplane_type should be its own Entity or simply an attribute of Airplane and why(or in which cases), |
|
perhaps more info required? |
#3
| |||
| |||
|
|
Hi all, I am trying to get my head around DB theory, I have the following information regarding an airplane, AIRPLANE manufacturer, type, serial number, purchase date, length, weight, Span, max. flying altitude, What I am trying to figure out is if airplane_type should be its own Entity or simply an attribute of Airplane and why(or in which cases), perhaps more info required? |
#4
| |||
| |||
|
|
Hi all, I am trying to get my head around DB theory, I have the following information regarding an airplane, AIRPLANE (manufacturer, type, serial number, purchase date, length, weight, Span, max. flying altitude) What I am trying to figure out is if airplane_type should be its own Entity or simply an attribute of Airplane and why(or in which cases), perhaps more info required? thanks Portroe |
#5
| |||
| |||
|
|
portroe <portroe (AT) nospam (DOT) com> wrote Hi all, I am trying to get my head around DB theory, I have the following information regarding an airplane, AIRPLANE (manufacturer, type, serial number, purchase date, length, weight, Span, max. flying altitude) What I am trying to figure out is if airplane_type should be its own Entity or simply an attribute of Airplane and why(or in which cases), perhaps more info required? thanks Portroe Airplane_type definitely *could* be its own entity (or relation according to relational theory). If you want to exclude nonexistant types in AIRPLANE, then it *should* be an entity on its own. |
#6
| |||
| |||
|
|
portroe wrote: Hi all, I am trying to get my head around DB theory, I have the following information regarding an airplane, AIRPLANE manufacturer, type, serial number, purchase date, length, weight, Span, max. flying altitude, What I am trying to figure out is if airplane_type should be its own Entity or simply an attribute of Airplane and why(or in which cases), First off: IS airplane_type simply a tag, or does it carry a meaning unto itself, ie. could you imagine attributes associated with airplane_type? |
|
Secondly, even if it is simply a tag, you might consider defining it as an entity as it gives you some possibilities: - a short tag with a longer named as an attribute - enforcement of integrity (only *these* airplane_type's are allowed in the database). Entegrity may of course be enforced in other ways too, but this way allows you to centralize the definition of possible types. And last: There is no correct answer. |
|
perhaps more info required? More info is always required :-( |
![]() |
| Thread Tools | |
| Display Modes | |
| |