Hallo MaM,
damit sollte es gehen (die sauberste Loesung):
SELECT
j1.isys_obj__title AS Switch,
j2.isys_catg_port_list__title AS "Switch Port",
j4.isys_obj__title AS "Verbunden mit",
j5.isys_catg_port_list__title AS "Server Port",
j5.isys_catg_port_list__mac AS "MAC Adresse"FROM isys_obj AS j1
LEFT JOIN isys_catg_port_list AS j2
ON j2.isys_catg_port_list__isys_obj__id = j1.isys_obj__idLEFT JOIN isys_catg_connector_list AS j3
ON j3.isys_catg_connector_list__id = j2.isys_catg_port_list__isys_catg_connector_list__idLEFT JOIN isys_catg_relation_list
ON isys_catg_relation_list__id = j3.isys_catg_connector_list__isys_catg_relation_list__idLEFT JOIN isys_obj AS j4
ON j4.isys_obj__id = isys_catg_relation_list__isys_obj__id__slaveLEFT JOIN isys_catg_port_list AS j5
ON j5.isys_catg_port_list__isys_obj__id = j4.isys_obj__idLEFT JOIN isys_catg_connector_list AS j6
ON j6.isys_catg_connector_list__id = j5.isys_catg_port_list__isys_catg_connector_list__idWHERE TRUE
AND j1.isys_obj__isys_obj_type__id = 6
AND isys_catg_relation_list__isys_obj__id__master = j1.isys_obj__id
AND j6.isys_catg_connector_list__isys_catg_relation_list__id IS NOT NULL
Gruss,
jkondek