A Microsoft Office (Excel, Word) forum. OfficeFrustration

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   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Table design question - advice needed



 
 
Thread Tools Display Modes
  #1  
Old June 7th, 2004, 07:41 PM
David
external usenet poster
 
Posts: n/a
Default Table design question - advice needed

I have a design problem that has me stuck.
I'm modifying a system.
It currently supports internal clients who are retrieved from a userdirectory table. This table cannot be changed and is imported bi-weekly.
Now they want me to cater for external clients, they will not be in thois table and can never be.
So I created a new table for external clients.
There will only be one client per record either internal or external.
What do I put in my main table? Its looking like 2 columns external client and internal client only one of which will be populated.
Or I could have an intermediate table for all clients but this would be a maintenence nightmare since it would have to be updated every time we import the userdirectory.
The main table has to have dozens of joins with other tables, would this not be complex for clients if I have 2 columns?

Anyone have any good ideas?

Ads
  #2  
Old June 7th, 2004, 10:04 PM
Chris Eberhart
external usenet poster
 
Posts: n/a
Default Table design question - advice needed

This looks like a good candidate for a union query which
you could then use as the datasource for all other
operations.
  #3  
Old June 8th, 2004, 12:56 AM
David
external usenet poster
 
Posts: n/a
Default Table design question - advice needed

Yes but my problem now is I have ended up with 2 columns in my main table (one for internal clients and one for external clients) and I dont lknow if I can now do the joins I need. Its a nightmare.
  #4  
Old June 8th, 2004, 02:21 AM
Peter De Baets
external usenet poster
 
Posts: n/a
Default Table design question - advice needed

One possible solution is to keep all your clients on one table and
have a field named "Type" that is set to "I", or "Internal" for
internal clients, "E" or "External" for external clients. This could
be a new table, so your imported table would never have to change.
You'd just have to write a routine or an update query to keep your
internal clients on the new table current, based on the latest
imported data.

A client is a client, right? It would seem to make sense to have them
all on one table.

Hope this helps,

Peter De Baets
Peter's Software - MS Access Tools for Developers
http://www.peterssoftware.com

"David" wrote in message ...
I have a design problem that has me stuck.
I'm modifying a system.
It currently supports internal clients who are retrieved from a userdirectory table. This table cannot be changed and is imported bi-weekly.
Now they want me to cater for external clients, they will not be in thois table and can never be.
So I created a new table for external clients.
There will only be one client per record either internal or external.
What do I put in my main table? Its looking like 2 columns external client and internal client only one of which will be populated.
Or I could have an intermediate table for all clients but this would be a maintenence nightmare since it would have to be updated every time we import the userdirectory.
The main table has to have dozens of joins with other tables, would this not be complex for clients if I have 2 columns?

Anyone have any good ideas?

 




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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:32 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright 2004-2020 OfficeFrustration.
The comments are property of their posters.