Database Development
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Remember me

Go Back   Dev Articles Community ForumsDatabasesDatabase Development

Add This Thread To:   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
Unread Dev Articles Community Forums Sponsor:
Old July 8th, 2011, 08:50 AM
FardahBash FardahBash is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
Join Date: Jul 2011
Posts: 1 FardahBash User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 25 m 22 sec
Reputation Power: 0
Help with establishing relationships in tables

hi everyone...i'm a newbie and this is my first database design. i'm trying to create a database that holds information for different sporting entities/bodies/associations. an entity can be one of three distinct types: NSA, SRE or SP. each entity has the basic information such as name, address etc...a sporting entity, (according to its type), can have members (these members can be thought of as an executive) and the sport entity can control various sports clubs...for example an Athletic Association (sport entity) can control athletic club A, athletic club B, etc.

now the challenge that i'm facing is that each sport entity can only be of a certain type (NSA, SRE or SP) and this type determines various characteristics. So if i put a type column in the sport entity table, i would have to put all the attributes that are related to each type and this of course will generate a lot of nulls depending on the type selected.

i have the following tables:

1) sportentity(se_id(pk), se_name, se_address)

2) sportentity_NSA/SRE(NSA/SRE_id(pk), se_id(pk), date_established, designation)

3) sportentity_SP(sp_id(pk), se_id(pk), period_of_service)

4) members(mem_id(pk), se_id(fk), mem_firstname, mem_lastname, mem_position)

5) club(club_id(pk), se_id(fk), club_name)

based on the above info:

1) are my tables made up correctly?
2) if so, how do i implement the relationships?
3) if not, how should i re-structure my design?


Reply With Quote

Viewing: Dev Articles Community ForumsDatabasesDatabase Development > Help with establishing relationships in tables

Developer Shed Advertisers and Affiliates

Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.

© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap