473,396 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Should I use a one-to-one relationship

Seth Schrock
2,965 Expert 2GB
I'm in the middle of planning a database that will track both students, prospective students and alumni. Obviously there is a lot of fields that would be the same between them, but more information would be gathered for students than for prospective students and then a few more fields for alumni. I know that I would have them all in the same table, but my question is how to handle the extra fields for for each type of contact. Do I have a basic contacts table with the fields that are duplicate and then have another table for the fields that only students would have and create a one-to-one relationship between the tables, or should have all the fields in one table and just hide the fields that don't apply?
Mar 9 '15 #1
3 897
NeoPa
32,556 Expert Mod 16PB
Either can work Seth, but unless the numbers of fields are really unwieldy I'd stick with the simpler approach of including all the fields in a single table and simply using only the ones that are relevant.

For most situations though, both can work perfectly well.
Mar 10 '15 #2
Seth Schrock
2,965 Expert 2GB
Well, at the moment I'm not sure how many fields there will be because I'm having to normalize the database. Currently they have Child1 through Child7 names and birthdays so that will eliminate several of the fields just because there won't be related records in other tables. Right now I would guess between 10 and 20 extra fields, but I could be wrong.
Mar 10 '15 #3
NeoPa
32,556 Expert Mod 16PB
So, they'll fit in a single table and you can choose to, or not to, use them depending on the circumstances. Unused fields take up very little space in a record.
Mar 10 '15 #4

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

Similar topics

20
by: Jeff Uchtman | last post by:
I'd like to combine (if possible these two statements drawing from a total of 3 tables. sql = "SELECT p.Sub_ID, p.Cat_ID, p.Sub_Name, COUNT(c.Sub_ID) as ct FROM Subs p LEFT JOIN Links c ON...
4
by: H Cohen | last post by:
Hi, I have a corporate database with about 60 different tables that spans manufacturing, accounting, marketing, etc. It is possible, but unwieldy, to establish a relationship for each table...
8
by: Andante.in.Blue | last post by:
Hello, I have just inherited a legacy Access 97 database. While going through it, I noticed something strange... its Relationships window (the one accessed by Tools --> Relationships) is almost...
2
by: Larry R Harrison Jr | last post by:
I have an Access 97 database with 2 tables that have a one-many relationship. I have a SQL statement in the "one" table which I want to execute and insert 7 records into the "many" table, and I...
2
by: Marco Simone | last post by:
Hi, I have 4 tables, tblCompany, tblA, tblB and tblC. tblA, tblB and tblC contain same type of data, they should be in one table, but since there are many fields, I split it into 3 tables. Each...
2
by: Leon Shaw | last post by:
I have two Dropdownlist and one which is containing States and one containing Cities. I know how to do all the little databinding task in visual studios interface as well as set the relationship...
1
by: Michael D. Reed | last post by:
I have two tables in an Access database with a Many-to-Many relationship, there is a connection table. The tables are , , and the connection table is this is a standard Many-to-Many relationship...
1
by: Phive | last post by:
Hi all, What I'm trying to do and having a lot of trouble with is pulling how one user is related to another user from my database. I'll explain... The table (relationships) looks like this: ID...
4
by: Phil Stanton | last post by:
Having spent ages sorting out the layout of my relationship window with about 60 tables and getting it all tidy and with enough of the tables visible to show the PK an FK relaionshipsOn a subseqent...
6
by: sg2808 | last post by:
I have two tables (tblPolicyMap and tblBusiness) and the fields within it are: 1. tblPolicyMap PolicyID (PK) PolicyDetail 2. tblBusiness BusinessID (PK) HLProcessName Business_Functions
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...

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.