If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Need help on common RDBMS task?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-02-04, 06:33
kapisoda kapisoda is offline
Registered User
 
Join Date: Jul 2004
Posts: 1
Unhappy Need help on common RDBMS task?

There is one table called Member that holds personal details (Name, Age, Address etc.).

Every member, after providing his personal details, has to make decision in what discussions he wants to participate.

How to store list of choosen discusions IDs and how to relate it with Member entity.

At first I tried with extra columns in Member table (discussion1_id, discussion2_id, ets). But then the number of selected discussions would be limited to number of columns.

Second solution that I came with was creation of extra table that will describe relation between Member and Discussion tables. Something like this(Member_ID, Discussion_ID)

This is a common task (Customer-SelectedItems, Member-Interests, etc), and I would like to know is there any pattern that addresses this problem.

Any link or Reply would be appreciated.

Last edited by kapisoda; 07-02-04 at 07:15.
Reply With Quote
  #2 (permalink)  
Old 07-13-04, 11:49
g00ber g00ber is offline
Registered User
 
Join Date: Jul 2004
Posts: 8
Make a new cross-ref table between member and discussion

TABLE: MemberDiscussionXRef
Code:
MemberID   DiscussionID
--------   ------------
1          1
1          2
2          2
3          2
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On