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 > Complex design question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-15-04, 01:06
cmptrguru7 cmptrguru7 is offline
Registered User
 
Join Date: Feb 2002
Posts: 43
Complex design question

I have designed a database for a bunch of different properties. Each property has Employees, Customers, and assets. The assets are items that can be assigned to customers for a period of time then returned.

My question is I am wondering if setting up one database in one location using the property code as part of the primary key is a good idea or should I somehow split the database up into tables by locations.
Reply With Quote
  #2 (permalink)  
Old 03-15-04, 08:40
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
Re: Complex design question

One database is preferable. Not all tables necessarily want property code in their primary keys: for example, the same Customer could perhaps get assets from more than one property?
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
  #3 (permalink)  
Old 03-15-04, 13:16
cmptrguru7 cmptrguru7 is offline
Registered User
 
Join Date: Feb 2002
Posts: 43
That is true, but perdominatly customers will get assets from one property. Think of this as a bunch of aprtment complexes and the assets are furniture. To prevent furniture form being traded amongst apartments each piece is assinged a unique number and is assigned to an occupant or customer.
Reply With Quote
  #4 (permalink)  
Old 03-16-04, 05:16
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
OK, fine. But still one database not many!
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
  #5 (permalink)  
Old 03-16-04, 14:10
cmptrguru7 cmptrguru7 is offline
Registered User
 
Join Date: Feb 2002
Posts: 43
Quote:
Originally posted by andrewst
OK, fine. But still one database not many!
That is waht I thought thank you.
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