Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
Old 10-31-2005, 12:34 PM Groups Database
Skilled Talker

Posts: 65
Trades: 0
Hi there,

I am fairly new to website design and db development and I have set up a user database with contact details all in one table (for ease)...

Now I would like these users to be able to attach themselves to one or more groups and I am not sure of the best approach to take?

I was thinking of having one tables for ids and names of groups and then another table with the foreign keys user id and group id. Would appreciate any views on this.

Many Thanks

Hick
The Hick Man is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-31-2005, 12:46 PM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Yep that's the right way to go.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-01-2005, 07:52 AM
Skilled Talker

Posts: 65
Trades: 0
Thanks for the reassurance chris. I would like to try a private messaging system eventually too...

Would I take a similar approach i.e. have a table called mailboxes which has the a row with the id of the users and rows for each messages sent to them?

This would limit the amount of messages you could have tho wouldn't it as you could only have as many as the amount of colums you set in the table?

Would it be better to just have all messages stored as one individual row and group them by the id - so although there not physically stored together when you request them as a group they are???

Thanks again

Hick Man

Last edited by The Hick Man; 11-01-2005 at 07:59 AM..
The Hick Man is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Groups Database
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11841 seconds with 12 queries