473,508 Members | 2,324 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

When to use a One-to-One relationships?

Seth Schrock
2,965 Recognized Expert Specialist
I'm pretty sure that what I have needs to just be combined into one table, but I would still like to know when a one-to-one relationship should be used. The current system uses three Excel sheets. I just made each one into its own table and then created one-to-many relationships. I just found out that one of the tables will only have one record for each record in the main table, so I immediately thought one-to-one relationship. Then I thought why not just combine them? Combining the tables would only add two fields to the main table.

I have looked on Google to find out when one-to-one relationships should be used, but I can't find anything.
Nov 30 '12 #1
6 2040
NeoPa
32,557 Recognized Expert Moderator MVP
Only for convenience really Seth. There are no pressing design reasons for one-to-ones. Maybe a situation could arise where the main table consists of only a few fields, but every once in a blue moon a whole swathe of other fields may be required. Access will quite happily handle all these as Nulls if required, but when reviewing the table it might make things a little more clumsy for the designer. As far as performance goes though, I can't think of a scenario where it might be important.
Nov 30 '12 #2
Seth Schrock
2,965 Recognized Expert Specialist
That is all I figured it would be for, but I know there are many things that I figured would be a certain way that weren't. At least I now know the answer. Thanks NeoPa.
Nov 30 '12 #3
NeoPa
32,557 Recognized Expert Moderator MVP
No worries Seth. Pleased to set your mind at rest :-)
Nov 30 '12 #4
ADezii
8,834 Recognized Expert Expert
A One-to-One Relationship can actually be very handy when you wish to seperate generic/biographical Data from something which is much more sensitive. I am referring to something similar to an Employees Table consisting of Last Name, First Name. Address, City, State, Zip, etc. and a Related Payroll Table consisting the Employee's Salary, Hourly Rate, Bonus Information, Social Security Number, etc. One Table whould be for all to see, whereas the other, consisting of personal/sensitive Data would be only viewable for a select few.
Dec 1 '12 #5
Seth Schrock
2,965 Recognized Expert Specialist
Interesting idea. I hadn't thought of that type of situation. Thanks for providing that consideration.
Dec 1 '12 #6
TheSmileyCoder
2,322 Recognized Expert Moderator Top Contributor
I suppose you could have situations where you have a 1-1 relationship between data in your own application and data in another application. You might only have read access to the "other" application but want to record and track other information in your own application.

Business rules can also result in designs where a 1-1 relationship might make sense.
Dec 2 '12 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
8343
by: Laurent Liegeois | last post by:
Hi, I have a funny Error in our sql server 7 & 2000. When I compare two string in Unicode format. I receive that it is the same when I add new nchar. I don’t understand why? Could you...
10
7623
by: Ryan McGeary | last post by:
In a <select> drop-down, the onchange event isn't called when scrolling through the dropdown using the mouse-wheel and when crossing over a new <optgroup>. Using the example below, notice how...
3
12892
by: Michael Shell | last post by:
Greetings, Consider the XHTML document attached at the end of this post. When viewed under Firefox 1.0.5 on Linux, highlighting and pasting (into a text editor) the <pre> tag listing will...
5
3595
by: me | last post by:
I have a Class Library that contains a Form and several helper classes. A thread gets created that performs processing of data behind the scenes and the Form never gets displayed (it is for debug...
1
1088
by: Tony Johansson | last post by:
Hello!! Assume you have the following AccountForStudent class class AccountForStudent { public: AccountForStudent (); AccountForStudent (long, double); ~AccountForStudent ;
2
2943
by: Bart Verbeke | last post by:
Hi, I have a form with 2 radio buttons (ACCEPT/REJECT). When the page is initially loaded, no textbox should be visible. When a user clicks the REJECT radio button, a textbox should...
10
9762
by: Tom Szabo | last post by:
Is there an event when that triggers when the window is closing.... I am talking about when the user clicks on the cross on the right top corner of the window!!!
7
19923
by: sql-db2-dba | last post by:
Does DB2 just fudge it when it is an empty table? Is there a "formula" for average row size when you have variable length records. Or you really have to know what your application is packing into...
2
1176
by: AAA | last post by:
Hi, when I mininize my application, the botton panel will always show the inputpanel of my application. How can I make that inputpanel disapper when I mininize my application or when I am in the...
2
1692
by: philip | last post by:
hello i am learning how to write stored procedures in sql server, i would like to know what's wrong with the following statement? please help the management studio gives me the following...
0
7229
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,...
0
7333
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,...
0
7398
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7061
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...
1
5057
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...
0
3208
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1566
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 ...
1
769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
428
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...

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.