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  

One table or a couple?



 
 
Thread Tools Display Modes
  #11  
Old November 28th, 2008, 12:15 AM posted to microsoft.public.access.tablesdbdesign
Tony Toews [MVP]
external usenet poster
 
Posts: 3,776
Default One table or a couple?

"David W. Fenton" wrote:

David brings up some interesting ideas.


Another app I used 1:1 was a medical study data collection app in
which data on all the kidney transplant patients from a particular
hospital was received from the UNOS national transplant registry.
These were imported into one table. If one of those patients
enrolled in the study, a 1:1 record was created in another table
with all the information needed for the study that was not already
included in the UNOS data (and, yes, it was a non-normalized data
structure and turned out to be a huge problem when 3 years in,
before the app was even in production use, UNOS changed their data
structure!). In a case where you're getting part of your data from
one source and need to maintain that, and you also need to add other
data for some (but not all) of the records in the main table, a 1:1
structure is very useful.


In that instance then sure a 1:1 can make sense. Obviously that's
relatively rare.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
  #12  
Old November 28th, 2008, 10:04 PM posted to microsoft.public.access.tablesdbdesign
David W. Fenton
external usenet poster
 
Posts: 3,373
Default One table or a couple?

"Tony Toews [MVP]" wrote in
:

"David W. Fenton" wrote:

David brings up some interesting ideas.


Another app I used 1:1 was a medical study data collection app in
which data on all the kidney transplant patients from a particular
hospital was received from the UNOS national transplant registry.
These were imported into one table. If one of those patients
enrolled in the study, a 1:1 record was created in another table
with all the information needed for the study that was not already
included in the UNOS data (and, yes, it was a non-normalized data
structure and turned out to be a huge problem when 3 years in,
before the app was even in production use, UNOS changed their data
structure!). In a case where you're getting part of your data from
one source and need to maintain that, and you also need to add
other data for some (but not all) of the records in the main
table, a 1:1 structure is very useful.


In that instance then sure a 1:1 can make sense. Obviously that's
relatively rare.


Well, maybe it's just me, but I've created at least three such
applications (that I can recall off the bat) where there was data
imported from somewhere else that the 1:1 table was useful. And
that's in addition to the two other types of 1:1 I earlier
described. All told, I've used 1:1 tables in about 1/3 of all the
major apps I've ever created.

Oh, yeah, I just thought of another one:

In a replicated app, to simplify complex filtering of the main form,
there's a Boolean flag field that used to be in the main table. This
caused terrible problems because each time the tag field was used
for filtering it caused replication conflicts. So, I moved the tag
field to a separate 1:1 table that is unreplicated.

Are you getting the point, Tony, that I use 1:1 tables quite a lot?
And that there really are quite a lot of justifications for their
use?

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
 




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 04:26 PM.


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