I am writing a database to keep track of Network Equipment.
Table Equip_1
ID,Node,Card,Slot,Port,Channel
Table Equip_2
ID,Card,Port
Table Equip_3
ID,Shelf,Card,Port
As you can see no piece of equipment is the same.
They all connect to DSX panels
Table DSX
ID,RR,Shelf,Port
then connections are made between the equipment by crosswiring from one
DSX to another.
Equip_1:1,1,1,5,1,1 -> DSX:1,303.03,15,3 -> DSX:2,303.03,17,22 ->
Equip_2:1,1,1
I am having trouble figuring out how to design this relationship. I
want to be able to pull up information in the following manner:
Look at Equip X and see what is connected to it
Look at DSX ###.## Shelf # and see what is connected to it
Look at the connections between Equip X and Equip Y
Look at the connections between DSX ###.## Shelf # and Dsx ###.## SHelf
#
etc
I have tried putting the dsx info in the same table as the equip since
the connection between the equip and it's own dsx will never change but
can figure out haw to connect the tables from there.
I have tried making a new table call crossdsx which shows what connects
to what but the fact that each equipment has different fields makes it
not work.
Possible connections could be
a-b,a-c,b-c,a-a,b-b,c-c
Please help, any advice is appreciated.