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.
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
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