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 > PC based Database Applications > Microsoft Access > Another Design Help question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-30-12, 05:13
SukhEsco SukhEsco is offline
Registered User
 
Join Date: Jan 2012
Posts: 2
Another Design Help question

Hi Guys,

I need a little design help here, I hoping someone can advise me here.

I’m working on an employee database.

In this database I need to hold Employee Records, the Campus they’re in and the Floor they’re on.

I want to have 1 form where I can select both their Building and Floor their on along with their other employee details.

I have an Employee table and a Buildings table.

My first question is…would I need to store the Floors in a separate table. I think I will have to?

Secondly as a quick description I have the following 3 tables…does the design look right? I’m a little unsure…

tblEmployee
EmpID
FName
LName
BuildingID
FloorID

tblBuilding
BuildingID
BuildingName

tblFloors
FloorID
FloorName
BuidlingID

Any advice or guidance is appreciated…

Thanks
Sukh
Reply With Quote
  #2 (permalink)  
Old 01-30-12, 07:29
healdem healdem is online now
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,250
theoretically you probably ought to store the floor Id in a separate table, but I think its overkill unless you need to separate out the floor at some time.

Id be tempted to enforce the floor as part of the room ID eg room 423 = floor 4 room 23
or store it in the employee record as a separate element

if you need to ensure that no crap data gets in then by all means have a separate entity
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #3 (permalink)  
Old 01-30-12, 08:30
SukhEsco SukhEsco is offline
Registered User
 
Join Date: Jan 2012
Posts: 2
Hi,

Thanks for your response,

I'm not storing information on rooms, but Buildings and Floors.

so an employee works in Building A, Floor 6.

But I guess the same principle could apply.

Like.... Building 1 Floor 1, Building 1 Floor 2...or am I missing the point?
Reply With Quote
  #4 (permalink)  
Old 01-30-12, 08:57
healdem healdem is online now
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,250
its your design to fulfill your design requirement.
if there is no compelling reason to have an entity for floors, then dont' have one. if there is a need then have one. you need to be concious of why you are making such desing decisions, and weighing up the tradeoff between tables / development time against user requirements.

if all you want to do is record the floor soemone works on and do not intend defining that a specific building has n floors then don't bother with a separate table.
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
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