Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

1.

Branch (BrnchNo, brcAddress, brcTelpNo, StffNo)

Primary key BrnchNo

Alternate key brcAddress

Alternate key brcTelpNo

Foreign key stffNo

Staff (StffNo, Fname, Lname, stffAddress, Position, Salary, sex, dob, BrnchNo)

Primary key StffNo

Foreign key BrnchNo

Client (ClntNo, cPostcode, cTelpNo, LicenseNo, Sex, dob, BrnchNo)

Primary key ClntNo

Alternate key LicenseNo

Foreign key BrnchNo

Carforuse (CarNo, Model, Color, BrnchNo)

Primary key CarNo

Foreign key BrnchNo

Lesson (LessNo, LessDate, LessTime, Stage, Progress, Comments, StffNo, ClntNo, CarNo)

Primary key LessNo

Foreign Key StffNo


Foreign key ClntNo

Foreign key CarNo

Result (StffNo, RsltTime, RsltDate, Mistake, Comments)

Primary key StffNo, RsltTime, RsltDate

Foreign key stffNo

Interview (StffNo, iDate, iTime, ClntNo)

Primary key StffNo, iDate, iTime

Foreign key ClntNo

Testing (TestNo, tDate, tTime, testerName, ClntNo, CarNo)

Primary key TestNo

Foreign key ClntNo

Foreign key CarNo

Entity Attributes Description Data type & Length information


Name
Branch BrnchNo Number of the branch 5 variable character
brcAddress Branch address 15 variable character
brcTelpNo Branch telephone number 15 variable character
Staff StffNo Number for each staff 5 variable character
Fname First name 15 variable character
Lname Last name 15 variable character
stffAddress Staff address 15 variable character
Position Job title for each member 10 variable character
Salary Money that staff get each month 10 variable character
Sex Gender of staff 1 character (M or F)
Dob Date of birth Date
Client ClntNo Client number in branch 5 variable character
cPostcode Client postcode 15 variable character
cTelpNo Client phone number 15 variable character
LicenseNo Driving License from Client 15 variable character
Sex Gender of client 1 character (M or F)
Dob Date of birth client Date
Carforus CarNo Number of car in branch 8 variable character
e Model Model of the car 15 variable character
Color The color of the car 15 variable character
Lesson LessNo Lesson number in training 5 variable character
LessDate The date there lesson scheduled Date
LessTime The time there lesson scheduled Time
Stage The level of the lesson 15 variable character
Progress 15 variable character
Comments 15 variable character
Result RsltTime Total of time lesson Time
RsltDate Total of date lesson Date
Mistake 15 variable character
Comments 15 variable character
Interview iDate Interview date Date
iTime Interview time Time
Testing TestNo Test no 5 variable character
tDate Test date Date
tTime Test time Time
testerName staff who become examiners 15 variable character

1.5
Inspected by Result
(J) (N) 1…1 RsltTime

(B)
1…* (A) (C) (O) (D)
CarforUse 1…* Branch Staff
1…1 Has
CarNo Runs 1…1 1…* StffNo 1…1
BranchNo
1…* 1…1
1…1
(K) requiredfor (H) Request (G)
Register
1…1 1…* 0…*
(E)
Lesson 1…1 0…* Client Interview
LessNo Books ClntNo 1…1 Attend 1…1 iDate
0…* 0…*
Sits
(L)
1…1
(M)
Testing
TestNo
Takes

(I) (F)

You might also like