SPrelewicz
Programmer
I am redesigning the structure of our site at work and am stuck at one part of the design.
I have a table for accounts, which has a column called affiliation #. The affiliation # joins with the affiliations table, which has columns for name, IP, contact, etc. Then I have a data table which stores all the content available. The user gets certain content based on their affiliation. The only design I can think of is to list each content item multiple times with another cell for the affiliation number.
IE:
affiliations
ID name
1 RIA
2 ECMC
3 HRC
content
name IDs_that_subscribe
content1 1
content1 2
content2 3
content3 1
content3 2
content3 3
Does this make sense? I feel there's got to be an easier/more efficient way, but am not experienced enough to come up with it. I thought of doing it where each content item was listed once, with multiple columns listing all the subscribes affiliate numbers like:
affiliations
ID name
1 RIA
2 ECMC
3 HRC
content
name IDs_that_subscribe1 ID_subscribed2 ID_subscribed3
content1 1 2
content2 3
content3 1 2 3
but I'm sure this is sloppy. Any ideas for me? Thanks!
Scott
I have a table for accounts, which has a column called affiliation #. The affiliation # joins with the affiliations table, which has columns for name, IP, contact, etc. Then I have a data table which stores all the content available. The user gets certain content based on their affiliation. The only design I can think of is to list each content item multiple times with another cell for the affiliation number.
IE:
affiliations
ID name
1 RIA
2 ECMC
3 HRC
content
name IDs_that_subscribe
content1 1
content1 2
content2 3
content3 1
content3 2
content3 3
Does this make sense? I feel there's got to be an easier/more efficient way, but am not experienced enough to come up with it. I thought of doing it where each content item was listed once, with multiple columns listing all the subscribes affiliate numbers like:
affiliations
ID name
1 RIA
2 ECMC
3 HRC
content
name IDs_that_subscribe1 ID_subscribed2 ID_subscribed3
content1 1 2
content2 3
content3 1 2 3
but I'm sure this is sloppy. Any ideas for me? Thanks!
Scott