HD assignment 2007

9

description

HD assignment 2007. FIFAWC2006. HO TING CHENG. Real Domain. This database is created base on the information obtained from http://www.fifa.com/worldcup/archive/germany2006/index.html - PowerPoint PPT Presentation

Transcript of HD assignment 2007

Page 1: HD assignment 2007
Page 2: HD assignment 2007

Real DomainReal Domain

►This database is created base on the This database is created base on the information obtained frominformation obtained from

http://www.fifa.com/worldcup/archive/ghttp://www.fifa.com/worldcup/archive/germany2006/index.htmlermany2006/index.html

►This database record the detail about This database record the detail about the teams, players, results, awards and the teams, players, results, awards and statistic information about FIFA world statistic information about FIFA world cup 2006cup 2006

Page 3: HD assignment 2007

ERDERDFIFAWC2006_Statatic

StatisticType

StatTeam*

StatPlayer*

GF

GFA

GG

PG

SG

YC

RC

FC

FS

FIFAWC2006_Result

MatchNumber

HomeTeam*

AwayTeam*

Stage

Date

Results

FIFAWC2006_WCTeam

WCTeam

Abbreviate

Region

FIFAWC2006_Player

PlayerID

Name

Age

WCTeam*

Position

FIFAWC2006_Award

Award

Team

PlayerID

PlayerClub

PlayerID*

ClubID*

Duration

Club

ClubID

ClubName

Page 4: HD assignment 2007

One to many One to many relationshiprelationship

Page 5: HD assignment 2007

Many to Many RelationshipMany to Many Relationship

Page 6: HD assignment 2007
Page 7: HD assignment 2007
Page 8: HD assignment 2007

CONSTRAINT FIFAWC2006_ResultPK PRIMARY KEY (MatchNumber),

CONSTRAINT FIFAWC2006_ResultFK_Invalid_HomeTeam FOREIGN KEY (HomeTeam)

REFERENCES FIFAWC2006_WCTeam (WCTeam)

ON DELETE CASCADE

ON UPDATE CASCADE,

CONSTRAINT FIFAWC2006_ResultFK_Invalid_AwayTeam FOREIGN KEY (AwayTeam)

REFERENCES FIFAWC2006_WCTeam (WCTeam)

ON DELETE CASCADE

ON UPDATE CASCADE,

CONSTRAINT FIFAWC2006_Result_Same_Team CHECK (HomeTeam <> AwayTeam)

);

Page 9: HD assignment 2007