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 > Normalisation anyone?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-29-03, 07:39
danthomas danthomas is offline
Registered User
 
Join Date: Oct 2003
Posts: 27
Normalisation anyone?

Hi, fairly new to db design and have a little normalisatin query for ya...

I have 2 tables: Client and Group

A Client can be a member of one or more groups
Each group can have one or more Clients

E.g.

CLIENT - client_id, client_name, group_id*
GROUP - group_id, group_name, client_id*

Extremely grateful for any help that can be offered

Cheers!
Dan
Reply With Quote
  #2 (permalink)  
Old 10-29-03, 08:37
peterlemonjello peterlemonjello is offline
Registered User
 
Join Date: Sep 2003
Posts: 364
If I understand your question correctly you're trying to resolve a many to many relationship. You need to create a third cross reference table to resolve the relationship.

CLIENT - client_id, client_name
GROUP - group_id, group_name
CLIENT_GROUP_XREF - client_id, group_id (you can put another column such as an identity for a primary key column if you want)
Reply With Quote
  #3 (permalink)  
Old 10-29-03, 09:09
danthomas danthomas is offline
Registered User
 
Join Date: Oct 2003
Posts: 27
Cheers,

That was my original thoughts but somehow convinced myself it was more complicated than that! (keep it simple stupid< - must remember that)

Thanks again!
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