It’s been a while since I’ve last tinkered with databases, and as usually my mind has slipped on what I need to do. Here’s me problem:
- I have a list of entries (strings).
- Each entry has its own name and unique ID.
- Entries can share names, but not IDs.
- Entries can also have properties (strings).
- Entries can have more than one of the same property.
- Each property for each entry can have its own value (string).
What’s the best table layout for those requirements?
Okay dumb question. Thanks anyway for the help. 😛
Entry table, with Name and UniqueID (PK)
Property Table, with PropertyName and ID (PK)
EntryProperty Table with EntryID (FK), PropertyID (FK), UniqueID (PK), Value.