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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-01-09, 02:49
dbdesign dbdesign is offline
Registered User
 
Join Date: May 2009
Posts: 3
Question

If i hav a table named occupant (FirstName, LastName, Age, Contact, Marital status, Nationality) & visitor table (FirstName, LastName, Age, Contact).

is it advisable for me to merge them into the same table? If yes, How do i verify whether they are visitors or occupants?
Reply With Quote
  #2 (permalink)  
Old 06-01-09, 03:18
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
Quote:
Originally Posted by dbdesign
is it advisable for me to merge them into the same table?
depends on a number of things, but it's quite feasible

you would need an additional column that indicates person type

can an occupant also be a visitor?
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 06-01-09, 04:30
dbdesign dbdesign is offline
Registered User
 
Join Date: May 2009
Posts: 3
so if i wish to view all the occupant details, i would need a column named occupant? so if this is true, i will need to set the column format yes/no? this is because im using ms access.

the occupant cannot be a visitor in my scenario.

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