Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Simple Database for Soccer Championship

$
0
0
Title says it all.

I wanted to know if this non-normalized to normalized structure is done right.
Some clarifications:
A game's location is related to a team's stadium.

The composed key for fixtures and games is done so that it will create a 1_2 ID(Competition_Fixture) relationship with the ID of the Games. At least that is what I tried to do.

________________________

Non-Normalized Structure

Competition
id Competition
nameCompetition
Year
Fixtures*
id Fixtures
name Fixtures
Games*
idGame
nameGame
Local
Date
Time
Teams*
idTeam
nameTeam
Stadium
Players*
idPlayer
namePlayer
nJersey
Position




1ª FN

idCompetition
nameCompetition
Year

idFixture
idCompetition
nameFixture

idGame
nameGame
Local
Date
Time
idFixture

idTeam
nameTeam
Stadium
idGame

idPlayer
namePlayer
nJersey
Position
idTeam


2ª FN

idCompetition
nameCompetition
Year

idFixture
idCompetition
nameFixture

idFixture
idCompetition
idCompetition

idGame
nameGame
Local
Date
Time
idFixture

idTeam
idGame

idTeam
nameTeam
Stadium

idPlayer
idTeam
nCamisola

idPlayer
namePlayer
nJersey
Position


________________________


Thank you in advanced guys :):beer:

Viewing all articles
Browse latest Browse all 13329

Trending Articles