I'm having some trouble choosing an appropriate data type for an attribute in a simple Oracle SQL database.
Here's my situation, I have two tables - Customer and Agent. One of the attributes in my Agent table is called Signed Customers, I need it to hold a set of integers (customer numbers) as a sort of array.
The primary key in Customer is Customer_ID and is INT. It has a relationship to "Signed Customers" type ??? in table Agent. So what should the type of "Signed Customers" be?
Any help would be greatly appreciated.
You need a table that sits between the CUSTOMER and AGENT tables, linking them together:
AGENT.AGENT_ID
)CUSTOMER.CUSTOMER_ID
)The data type you seek means storing denormalized data, which would make for a royal pain to try to retrieve specific customer values. Save yourself the headache by setting things up properly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With