473,614 Members | 2,342 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

one to one relationships

Does Access store two tables which have a one-to-one relationship, as if
they were just one table? I ask because in the db I'm making, there are a
few instances in which a one-to-one relationship seems appropriate. But my
reasoning is that for the same entity, sometimes several fields are relevant
only for some records. So putting those fields into a separate table would
keep the main table from having a lot of empty fields for many records.

But if Access stores the records as if they were in one big table, there's
no point in my splitting the table into two, is there?

This is still the db for the recreational tree climbing business.

Here's an example: tblJobProposals . The fields in this table all apply to
one or two people wanting a climb. If someone wants to arrange a climb for a
group, six more fields apply. So I make tblGroupProposa ls, with the same
JobProposalID so it's linked to the other JobProposal fields. (Also, of
course, the JobProposalID is a FK in other tables, so I don't want two
different PKs.)

Does it save space and make sense to do it this way? TIA
Nov 12 '05 #1
1 8365
No, Access does not store one-to-one relationship tables as though they were
a single table. If there is actually a record in the related table for each
record in the main table, there will be a bit of additional overhead. If
there are many empty records in the related table, you may save a bit of
disk space (but, on the other hand, these days disk space is both cheap and
fast). My choice would be on the basis of "the way I think of this as
modeling the real world, does it make sense to keep them separate" rather
than saving a little disk space. I think your arrangement makes sense for
two separate tables.

Larry Linson
Microsoft Access MVP

"Catherine Jo Morgan" <cj******@hemc. net> wrote in message
news:B4******** ************@he mc.net...
Does Access store two tables which have a one-to-one relationship, as if
they were just one table? I ask because in the db I'm making, there are a
few instances in which a one-to-one relationship seems appropriate. But my
reasoning is that for the same entity, sometimes several fields are relevant only for some records. So putting those fields into a separate table would
keep the main table from having a lot of empty fields for many records.

But if Access stores the records as if they were in one big table, there's
no point in my splitting the table into two, is there?

This is still the db for the recreational tree climbing business.

Here's an example: tblJobProposals . The fields in this table all apply to
one or two people wanting a climb. If someone wants to arrange a climb for a group, six more fields apply. So I make tblGroupProposa ls, with the same
JobProposalID so it's linked to the other JobProposal fields. (Also, of
course, the JobProposalID is a FK in other tables, so I don't want two
different PKs.)

Does it save space and make sense to do it this way? TIA

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
3011
by: Ed | last post by:
I am running Access 2002 and just ran the built in Access wizard for splitting a database into a back end (with tables) and front end (with queries, forms, modules, etc.). After running the wizard, I opened the table relationship view and noticed that all the relationships are missing. Is this supposed to happen? If so, why? I've noticed that queries are behaving strangely now, seemingly because the relationships are not established....
0
1481
by: Megan | last post by:
Hi Everybody- I know that this is a really, really long post, but I wanted to try to give you as much background as possible. So here's a quick overview of the issues I'm asking for help with: 1.) I'm trying to create a many to many relationship, and I get the following Error when I try to enforce referential integrity.
2
4129
by: Max | last post by:
Hi. I really hope someone can help me. Going slowly insane with this problem. I have a two Access 2000 databases. One is the backend containing tables and some admin queries. The other is the front end with forms / queries and links to the tables in the back end. From the Relationships window I selected File / Print Relationships. The resulting report shows relationships that are not displayed in the relationships window. Some of...
7
2121
by: davegb | last post by:
I'm totally new to relational database design. My boss has asked me to create a database of information on the employees in our group. Seemed to me like a simple application to learn the ropes. A couple of things are confusing me. The first is "Relationships" and "Joins". Are they different names for the same thing? If not, what is the difference? I have a copy of the Access 2000 Bible, and it says, "When you create a relationship between...
10
7003
by: Dixie | last post by:
I need to delete some relationships in code. How do I know what the names of those relationships are?
45
3383
by: salad | last post by:
I'm curious about your opinion on setting relationships. When I designed my first app in Access I'd go to Tools/Relationships and set the relationships. Over time I'd go into the window and see relationship spaghetti....tables/queries all overthe place with lots of relationship lines between here and there. After that first app I didn't do relationships. If I had a query, I defined the relationship. Many of the times when I create a...
4
2276
by: celinesuzzarini | last post by:
Hi all, I have split my database a while ago, and now, I want to add a table with relationships to other existing tables. I open the BE, create my table, and then go to the relationships design, but there is no tables, no relationships. Even when I add all my tables, the relationships don't show up. I tried the "Show all" and "Show direct" relationships buttons, but nothing. I know that they are here cause when I create a new query with...
13
2059
by: ARC | last post by:
Hello all, Prior to going live with my app, I have questions on relationships theory. My prior app was done in Access 97, and I did NOT use relationships at all. I have 65 tables in my back-end database, and with Access 97, if you added relationships, it would add multiple copies of the same relationships over and over, so I decided not to use any relationships at all. Additionally, when I needed to add or remove fields via code, it...
2
1511
by: John Google | last post by:
Hi, Access 2002. I import tables from another database where I only copy the definition and not the data. I select the Import Relationships option on the import dialog. After I do the import the empty tables are there with the correct defintion and the MSysRelationships table is updated with the relationships
8
1680
by: Phil Stanton | last post by:
I have a FE, BE database on my home computer and a duplicate on the office computer. Both use Ak2 on Windows XP. The one at home appears normal. The BE consists of about 50 tables with numerous relationships and the FE 9 tables (fixed set up stuff) + the 50 linked table from the BE database. At home on the relationship view I see all the tables and their relationships, but on the office machine I see only the relationships between the FE...
0
8197
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8640
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8287
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8443
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6093
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4136
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2573
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1757
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1438
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.