You are on page 1of 3

DBE Old Questions

5. (a) In at most two sentences, explain what each of the following terms mean:

Transaction

Foreign key

Attribute

- Attributes describe an entity’s characteristics.


- Example of attributes on Customer entity class are: - Cust_No, Cust_Name, Cust_DOB etc

Candidate key

Functional Dependency

- The value of one attribute (the determinant) determines the value of another attribute.
- Each non-key field is functionally dependent on every candidate key.

[10 marks]
(b) A golf tour consists of a number of tournaments, each played on a different golf course throughout
the year. A golfer may enter and play in as many of these tournaments as she (or he) wishes.

You are required to complete the following:

i. Create a conceptual ER diagram for the above description [10 marks]

Conceptual ER Diagram for a Golf Tour

DOB Contact
Season
Name Address Events Played
Country LName
FName ProgressStatus

Points
A Golf Tour Player Profile
Player
Overall THRU RND
1
m
Hole Par Results
has R1
R2
m
include ScoreBoard LeaderBoard R3
n
n R4
TOT
1 1 1 n
Tournaments Play GolfCourse has Holes
at

Defending Name Location HoleID Distance


Date EventName
Champion

Ref: Please refers the golf tour data from the following links

http://www.golfchannel.com/tours/pga-tour

http://sports.yahoo.com/golf/pga/players
ii. Create a relational schema from the conceptual ER diagram, adding any attributes that you deem
necessary to specify the model. [10 marks]

GolfTour (TourId, Name, Season, Country)

Tournaments (TournamentId, TourId, CourseId, Date, EventName,


DefendingChampion)

GolfCourse (CourseId, Name, Location)

Holes (HoleId, CourseId, Distance)

Player (PlayerId,FName,LName,DOB,ContactAddress)

PlayerProfile (ProfileId,PlayerId,EventsPlayed,ProgressStatus,Points)

TournamentsPlayers(TournamentId,PlayerId)

ScoreBoard (TournamentId, PlayerId, Hole,Par,Result)

LeaderBoard (TournamentId, PlayerId, overall, thru,rand,r1,r2,r3,r4,TOT)

You might also like