S
ssoss
Hi.
I am creating a database that tracks organizations and their members. After
trying to post several questions in the last couple of weeks, I figured out
the basic structure of my database was lacking.
I have two tables
members
memID, memName, etc.
orgs
orgID, orgName, etc.
The issue is that an organization may have many members, and a single member
may belong to multiple orgs.
Therefore, I cannot use orgID as a FK in the "members" table.
Instead, I thought I would use what I have heard called a "union" or
"junction" table. ie:
x_mems_orgs
xID, memID, orgID
Can someone please give me some advice or samples of how to best implement
this type of functionality in .net?
Specifically, I need an example of filling a DataSet with content of two
tables based on a union/junction table?
Is this necessary or is there an easier way?
Thank you!
Drew
NY
I am creating a database that tracks organizations and their members. After
trying to post several questions in the last couple of weeks, I figured out
the basic structure of my database was lacking.
I have two tables
members
memID, memName, etc.
orgs
orgID, orgName, etc.
The issue is that an organization may have many members, and a single member
may belong to multiple orgs.
Therefore, I cannot use orgID as a FK in the "members" table.
Instead, I thought I would use what I have heard called a "union" or
"junction" table. ie:
x_mems_orgs
xID, memID, orgID
Can someone please give me some advice or samples of how to best implement
this type of functionality in .net?
Specifically, I need an example of filling a DataSet with content of two
tables based on a union/junction table?
Is this necessary or is there an easier way?
Thank you!
Drew
NY