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 > ISA relationship question

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-12-10, 09:18
temp_tsun temp_tsun is offline
Registered User
 
Join Date: Feb 2009
Posts: 13
ISA relationship question

Hello,

I've a small question about how to achieve the following:

I have an ISA relationship as follows:

- salesperson
- manager
- boss

they are all employees of my company, however. A salesperson can work at different stores of my company and the boss and manager can only work at one store. How a can I achieve this?

Cause my employee entity has connection with store with a certain constraint, or do I need to look at otherwise and use connection from salesperson to connect to store, cause there is actually only one boss so, I think that would be my approach to tackle this problem.

Any suggestions?
Reply With Quote
  #2 (permalink)  
Old 03-12-10, 20:17
r937 r937 is online now
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,085
do a search for supertype/subtype -- you'll want at least one more table

what's the difference between a boss and a manager?
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 03-13-10, 06:03
temp_tsun temp_tsun is offline
Registered User
 
Join Date: Feb 2009
Posts: 13
Yeah, good question. I do not really know... but I wanted some difference between the boss and a manager.

PS: I will look it up and respond to you as soon as possible.

Last edited by temp_tsun; 03-13-10 at 13:46.
Reply With Quote
Reply

Thread Tools
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