I have a database for networking devices and cable number withs ports etc..
basically I have 2 tables:
TBL_Devices:
-DeviceID
-Device_Tag
-Device_Location
-Device_Sublocation
TBL_Device_Ports:
-Ports_Cable_Number
-Ports_nr
-Port_Broken
-Port_Device_ID
With 1-many relation on DeviceID <==> Port_Device_ID
I have created a query that outputs following:
DeviceTag Device_Location Device_Sublocation Ports_Cable_Number Ports_nr SW1 ROOM1 CAB1 1212 FA0/1 SW3 ROOM1 CAB5 1212 25 RTR6 ROOM6 CAB3 10365 GI0/0/3 SW1 ROOM1 CAB1 10365 FA0/2
I'd like to have a query that outputs following:
Ports_Cable Number Devicetag1 Device_location1 Device_Sublocation1 Port_NR1 Devicetag2 Device_Location2 Device_Sublocation2 Port_NR2 1212 SW1 ROOM1 CAB1 FA0/1 SW3 ROOM1 CAB5 25 10365 RTR6 ROOM6 CAB3 GI0/0/3 SW1 ROOM1 CAB1 FA0/2
Any Idea how I can solve this matter, as I cannot find anything like this on the net.