monkeymafia
November 4th, 2006, 11:00 AM
hello
i have 2 tables: employee and volunteer.
ive made volunteer a subclass of employee as volunteers are given a temprorary employee ID. this seemed to make sense.
as a result i have the following tables:
EMPLOYEE:
employee no (PK)
job title
address
home tel
mobile number
gender dob
VOLUNTEER
Emp No(PK)
arrival date
leave date
allocated room
passport No
insurance name
policy number
insurance tel no
does this look okay? i think it would cause problems though. for example if i want to do a SQL query showing how many volunteers are working at the company. not to sure how i would present it. maybe passport number needs to be a primary key too? confused lol
any help would be greatt!
thanks
i have 2 tables: employee and volunteer.
ive made volunteer a subclass of employee as volunteers are given a temprorary employee ID. this seemed to make sense.
as a result i have the following tables:
EMPLOYEE:
employee no (PK)
job title
address
home tel
mobile number
gender dob
VOLUNTEER
Emp No(PK)
arrival date
leave date
allocated room
passport No
insurance name
policy number
insurance tel no
does this look okay? i think it would cause problems though. for example if i want to do a SQL query showing how many volunteers are working at the company. not to sure how i would present it. maybe passport number needs to be a primary key too? confused lol
any help would be greatt!
thanks