- Joined
- Oct 16, 2007
- Messages
- 1,886
- Reaction score
- 11
- Points
- 0
- Location
- USA-WA
- Website
- www.orbiter-forum.com
Sorry for the never ending 20 Q's but
The database we are designing for class is based on a TV supplier. The scenario says that there can only be two of each type of channel available per package. ex, documentary, lifestyle, movie, news and sports. So I have the entity labeled Package, with the attributes, id, description, price, ext ext..., then DOC1, DOC2, LIFE1, LIFE2, MOVIE, MOVIE2, NEWS, NEWS2, SPORT, SPORT2.
Obviously this isn't very efficient, I would rather have an array.
This Oracle Data Types shows the data types, but I cannot find anywhere (in my book, or on the internet) where or how to make an array as a data type.
Oh and I guessed about the NUMBER(X,Y) but that's not quite right;
Any thoughts?
The database we are designing for class is based on a TV supplier. The scenario says that there can only be two of each type of channel available per package. ex, documentary, lifestyle, movie, news and sports. So I have the entity labeled Package, with the attributes, id, description, price, ext ext..., then DOC1, DOC2, LIFE1, LIFE2, MOVIE, MOVIE2, NEWS, NEWS2, SPORT, SPORT2.
Obviously this isn't very efficient, I would rather have an array.
This Oracle Data Types shows the data types, but I cannot find anywhere (in my book, or on the internet) where or how to make an array as a data type.
Oh and I guessed about the NUMBER(X,Y) but that's not quite right;
Fixed-point NUMBER
NUMBER(p,s)
precision p = length of the number in digits
scale s = places after the decimal point, or (for negative scale values) significant places before the decimal point.
Any thoughts?