I hope this is the correct thread for this question. I am trying to implement a database in Oracle 8.16i. One particular table needs to have a couple columns that can be multi-valued.
For example:
Lets say I want to create a table called employees. In it I want all pertinent employee information, eg Name, address, phone number.
Continuing down this orwellian path I might want to have several phone numbers for an employee.
So employee 1 might be John Doe, with a ssn of 123-45-6789 and three phone numbers, 555-555-5555, 444-444-4444, etc.
However pther employees might only have ONE phone number. Others might have 20.
Do I need to create a seperate User Defined Type/Object and then make that a table out of those types and then nest that table?? Is there another way to do this?
For example:
Lets say I want to create a table called employees. In it I want all pertinent employee information, eg Name, address, phone number.
Continuing down this orwellian path I might want to have several phone numbers for an employee.
So employee 1 might be John Doe, with a ssn of 123-45-6789 and three phone numbers, 555-555-5555, 444-444-4444, etc.
However pther employees might only have ONE phone number. Others might have 20.
Do I need to create a seperate User Defined Type/Object and then make that a table out of those types and then nest that table?? Is there another way to do this?