473,397 Members | 2,099 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,397 software developers and data experts.

Relationships

Hello everyone, first of all let me thank you for looking at my question. My question is I have 3 tables total, one table is a 6 Month Review, 12 Month Review and Team Members. The 6 Mo and 12 Mo are exactly the same, the consist of ReviewID which is the autonumber and teammemberID which is where I related it to the Team Member table which is the Prim for the Team Member table. My problem is that when I relate these it says that I have broken referential integrity because something on the 6 mo/12 mo doesn't relate and I have no idea why I am receiving this message. The 6 Mo/12 Mo table has a variety of yes/no fields with many memos, but other than that it seems fine. The Team Member table has TM info such as dept. seniority # and things of that sort.
Apr 13 '09 #1
1 1060
Stewart Ross
2,545 Expert Mod 2GB
Hi. You don't tell us what the data type of the Team Member primary key is. If it is an autonumber then the matching data type in your reviews tables should be a long integer.

To find non-matching rows which would break relational integrity create a new query in which you join the review table to the team member table. Select the join and change it to a left or right join as appropriate - the one that says include all rows from the review table and only the one from the team member table that match. Include suitable fields from your review table (and particularly the team member ID secondary key). Include the team member primary key from the Team Member table, and in its criteria box enter Is Null. When you run the query you will see only the rows where there is no match for the team member ID in your review table to your team members table.

As a side comment, I am certain that your tables are not in completely normalised form. If you have two tables that are identical except that one is for a 6 month review and the other is a 12 month review you have mistakenly confused an attribute - the review period - with the need for another table. You should just have one review table, which includes as an attribute a definable review period that in turn is specified in a separate review periods table.

What happens if you decide you need another review at 9 months? You should never need to add another table...

We have a useful introductory article on data normalisation and table structures which you may find of interest.

The main thing to remember is that in a normalised table all attributes - the fields of that table - must be dependent solely on the primary key and nothing but the key. Any other kind of dependency - such as the implicit one about review periods, which is hidden away in your current design by using multiple tables - requires further decomposition before the design can be considered normalised.

-Stewart
Apr 14 '09 #2

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

Similar topics

20
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...
0
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:...
2
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...
7
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...
10
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
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...
4
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...
13
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...
2
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...
8
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.