If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > subclass help

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-04-06, 11:01
monkeymafia monkeymafia is offline
Registered User
 
Join Date: Nov 2006
Posts: 20
subclass help

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
Reply With Quote
  #2 (permalink)  
Old 11-04-06, 23:47
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
What part of the answers to your previous thread did you not understand?
enhanced ERD help

We frown on cross-posters here. And we frown on homework help as well, although you can often find someone who will comment on the work you do, provided you put forth some effort.
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On