473,386 Members | 1,873 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,386 software developers and data experts.

best practices of multiple relationships between tables

desklamp
Access 2003 on Win2K

The tables involved:
an IP address table, tblIP, where basic IP address information is stored: IP, WHOIS, reverse DNS name, etc.

an event IP table, tblIPEvent, where event specific data is stored: IP, event number, port, protocol, direction, etc.

a third report table, tblReport, where I track the source IP, destination IP, event number, and and additional information provided by analysts.

The relationships established (so far!):
There is a one-to-many relationship between tblIP and tblIPEvent, since a single IP address could be involved in many events.

The Desired outcome:
I'd like to create separate (one-to-one) relationships between tblReport.(EventNum,SrcIP)<=>tblIPEvent.(EventNum, Address) and tblReport.(EventNum,DstIP)<=>tblIPEvent.(EventNum, Address).

The Questions:
  • In the Relationships Manager window, should I define both these relationships in the one "tblIPEvent" table; or keep only one relationship per table and create another table, "tblIPEvent_1"?
  • If "tblIPEvent_1" needs to be created, do I also need to (re-)create a one-to-many relationship between the original tblIP and the new "tblIPEvent_1" or create a new "tblIP_1" for that one-to-many relationship?


Please let me know if this question is not clear, or how I can better describe my situation to assist the experts. Also, corrections to my methods or table layout also accepted!

Best Regards.
Aug 14 '07 #1
1 2452
Scott Price
1,384 Expert 1GB
As I read through your post, assuming that your Event is something on the order of a MS Error Message/number or a generic Collision type name, it looks to me like you may have a Many to Many relationship between tblIP and tblEvent.
To test this, let's ask this question: It is true that One IP can be involved in Many Events, but can the same Event be matched to more than one IP? (The existence of your SouceIP and DestinationIP fields in tblReport makes this almost a certainty in my mind)

You might explore something along the lines of this:

tblIP
IPID AutoNumber PK
IPAddress
WHOIS
ReverseDNS

tblEvent
EventID AutoNumber PK
EventDesc

tblIPEvent
IPEventID AutoNumber PK
EventID FK
IPID FK
Port
Direction
IPInvolve (i.e. Source, Destination)
Analysis

Let me know if you don't follow the logic behind this, or if I'm assuming wrongly!

Regards,
Scott
Aug 27 '07 #2

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

Similar topics

1
by: louis nguyen | last post by:
Hi All, My question is what are the best practices for administering large DBs. (My coworker is the DB administrator. I'm more of the developer. But slowly being sucked in.) My main concern...
1
by: abefuzzleduser2 | last post by:
What is the best way to setup relationships between one lookup table and many other tables. The tables did not have any lookup table relationships which I am adding. One lookup table is used for...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
19
by: Steve Jorgensen | last post by:
I've run across this issue several times of late, and I've never come up with a satisfactory answer to the best way to handle this schema issue. You have a large section of schema in which a...
11
by: dskillingstad | last post by:
I've been struggling with this problem for some time and have tried multiple solutions with no luck. Let me start with, I'm a novice at Access and I'm not looking for someones help to design my...
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...
11
by: shriil | last post by:
Hi I have this database that calculates and stores the incentive amount earned by employees of a particular department. Each record is entered by entering the Date, Shift (morn, eve, or night)...
22
by: banderson | last post by:
Hello I'm new to developing databases in Access and using Access2003. I have a dataset with a few many to many relationships that I have created linking tables for to make multiple 1:M relationships....
4
by: knix | last post by:
I have this access project consisting of multiple tables that are linked together in a relationship. I would like to migrate the consolidated information through appending in a datasheet form or...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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
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
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...

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.