nick2price
Registered User.
- Local time
- Today, 11:48
- Joined
- Sep 24, 2008
- Messages
- 14
Hi everyone, new here and a complete sql newbie.
I have been working on this now for four days, and i am so close to having a nervous breakdown, lol. My scenario is for a swimming meet, this is what i came up with.
A meet will have one or more events (e.g., 50 m freestyle, 4x100 freestyle relay, etc.).
An event will have one or more heats.
A heat will have one or more individuals entered.
Each individual will have a time associated with their heat.
So i created my Tables as so:
Meet(meetID(PK), meetName)
Event(eventID(PK), meetID(FK), eventName)
Round(roundID(PK), eventID(FK), roundNumber)
Competitor(CompetitorID(PK), name)
RoundCompetitor(roundID(fk), competitorID(fk), timeSet)
I have been unable to put an Enforce referential Integrity on any of the relationships as when it through java with jdbc, it complains. Hope this doesnt matter. You can see my relationships underneath. All my primary Keys besides CompetitorID, are autonumber. The problem is that when i try to create a query on two or more tables, i am being returned no data at all. For instance, i want to retrieve the 3 fastest times(timeSet), for Round_1 (roundNumber), for the 100M Frontcrawl (eventName). Is all my tables correct, and all their relationships correct? And what would the query i want to perform look like in access?
Cheers for any help you can offer and thanks for having me on this site.
I have been working on this now for four days, and i am so close to having a nervous breakdown, lol. My scenario is for a swimming meet, this is what i came up with.
A meet will have one or more events (e.g., 50 m freestyle, 4x100 freestyle relay, etc.).
An event will have one or more heats.
A heat will have one or more individuals entered.
Each individual will have a time associated with their heat.
So i created my Tables as so:
Meet(meetID(PK), meetName)
Event(eventID(PK), meetID(FK), eventName)
Round(roundID(PK), eventID(FK), roundNumber)
Competitor(CompetitorID(PK), name)
RoundCompetitor(roundID(fk), competitorID(fk), timeSet)
I have been unable to put an Enforce referential Integrity on any of the relationships as when it through java with jdbc, it complains. Hope this doesnt matter. You can see my relationships underneath. All my primary Keys besides CompetitorID, are autonumber. The problem is that when i try to create a query on two or more tables, i am being returned no data at all. For instance, i want to retrieve the 3 fastest times(timeSet), for Round_1 (roundNumber), for the 100M Frontcrawl (eventName). Is all my tables correct, and all their relationships correct? And what would the query i want to perform look like in access?
Cheers for any help you can offer and thanks for having me on this site.
