Solved

Table Normalization Part 2

Posted on 2004-04-28
11
157 Views
Last Modified: 2010-04-05
OK, to add onto previous question:

http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_20968246.html

i think this design will work, but it will take some re-working of my existing application, any suggesions:

I will then post a question for SQL statements need to calculate points.

Thanx!

Shane



Teams
- id
- Name

Players
- id
- TeamId
- Name  
- Points - Calculated

Matches
- id
- Date
- Team1
- Team2

MatchResults
- id
- MatchId
- Team
- Points - Calculated Field

Games
 - Id
 - MatchId
 - MatchType - {Singles, Doubles}

GameResults
 - Id
 - GamesId
 - Player - Selected from Players
 - Points (not calculated)
0
Comment
Question by:shaneholmes
  • 9
  • 2
11 Comments
 
LVL 12

Expert Comment

by:esoftbg
ID: 10943685
May be:

Teams
- id
- Name
- Points - Calculated

Players
- id
- TeamId
- Name  
- Points - Calculated

Matches
- id
- Date
- Team1
- Team1Points - Calculated Field
- Team2
- Team2Points - Calculated Field

Games
 - Id
 - MatchId
 - MatchType - {Singles, Doubles}

GameResults
 - Id
 - GamesId
 - Player - Selected from Players
 - Points (not calculated)
0
 
LVL 11

Author Comment

by:shaneholmes
ID: 10943721
Yeah, i had that before in my original design - see link above
i dont belive its normalized that way - I ran into problems earlier trying to use it like that um then again, i dont know what my new sqls will be like

Shane
0
 
LVL 12

Expert Comment

by:esoftbg
ID: 10943968
I think the fields Team1 and Team2 in the table Matches double the field Team in the table MatchResults:

Teams
- id
- Name
- Points - Calculated

Players
- id
- TeamId
- Name  
- Points - Calculated

Matches
- id
- Date

MatchResults
- id
- MatchId
- TeamId
- Points - Calculated Field

Games
 - Id
 - MatchId
 - MatchType - {Singles, Doubles}

GameResults
 - Id
 - GamesId
 - Player - Selected from Players
 - Points (not calculated)
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 12

Expert Comment

by:esoftbg
ID: 10944090
May be:

Matches
- id
- Date
- MatchType - {Singles, Doubles}

//.......................

Games
 - Id
 - MatchId
0
 
LVL 12

Expert Comment

by:esoftbg
ID: 10944104
Here is 01:16 AM, I will go into the bed. Tomorrow will be a better day for programming :-))
0
 
LVL 12

Expert Comment

by:esoftbg
ID: 10944123
Not tomorrow - today but after the dream....
0
 
LVL 12

Expert Comment

by:esoftbg
ID: 10957995
I have not Access, so i developed a simple hint-example:
http://www.geocities.com/esoftbg/Q_20971121.zip
0
 
LVL 12

Expert Comment

by:esoftbg
ID: 10958184
0
 
LVL 11

Author Comment

by:shaneholmes
ID: 10958871
esoftbg, im getting this message....

We're sorry, but this page is currently unavailable for viewing.
If this site belongs to you, please read this help page for more information and assistance.

Shane
0
 
LVL 12

Expert Comment

by:esoftbg
ID: 10965585
0
 
LVL 12

Accepted Solution

by:
esoftbg earned 100 total points
ID: 10973327
I have no problems to download the file Q_20971121.zip as it is declared above, but you may visit
http://www.geocities.com/esoftbg/
and
http://www.geocities.com/eosoft/
first as a web-pages and then download from the link
Q_20971121.zip
Really I don't understand what happens with my yahoo web-pages. I can access them without problems, but you are the first, who alert me for "currently unavailable for viewing" message, but already is another who alert me about the same ????
These web-sites belong to me, but I don't know what to do for avoiding this problem.
emil
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi XE10, MySQL Query 4 164
FMX StringGrid1->Canvas->FillRect Problem 3 171
Create Database on Android via Delphi dbExpress 3 112
How to make Sign in, using Clientdataset? 1 28
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question