Welcome Guest, Not a member yet? Register   Sign In
Need some DB help
#10

[eluser]sandwormusmc[/eluser]
Cheesy ER diagram:

Code:
<1>=-=<2>
where 1 & 2 are tables with a M-M relationship.

translate to

Code:
<1>--=<3>=--<2>

So basically you'll have an intermediary table that holds the IDs of <1> and <2> as a unique entry for each row.

I.E. I track hosts and patches. Each host can have multiple patches installed on it, and each patch can be installed on multiple machines. A third table is necessary with a row specifying each host.id and patch.id to keep it in 3rd Normal Form (3NF).

Seems to work ...


Messages In This Thread
Need some DB help - by El Forum - 03-12-2008, 04:07 PM
Need some DB help - by El Forum - 03-12-2008, 06:30 PM
Need some DB help - by El Forum - 03-12-2008, 06:45 PM
Need some DB help - by El Forum - 03-12-2008, 07:04 PM
Need some DB help - by El Forum - 03-13-2008, 03:17 AM
Need some DB help - by El Forum - 03-13-2008, 07:29 AM
Need some DB help - by El Forum - 03-13-2008, 07:50 AM
Need some DB help - by El Forum - 03-13-2008, 08:49 AM
Need some DB help - by El Forum - 03-13-2008, 01:50 PM
Need some DB help - by El Forum - 03-13-2008, 02:37 PM
Need some DB help - by El Forum - 03-13-2008, 03:08 PM
Need some DB help - by El Forum - 03-13-2008, 07:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB