1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
EXPLAIN SELECT DISTINCT
Serveur.Gestionnaire AS 'Gestionnaire',
Serveur.Serveur AS 'Serveur',
Serveur.AdresseDebutPlage AS 'AdresseDebutPlage_Serveur',
Serveur.AdresseFinPlage AS 'AdresseFinPlage_Serveur',
Serveur.AdresseDNS AS 'AdresseDNS_Serveur',
DNS.AdresseIP AS 'AdresseIP_DNS',
IF( DNS.AdresseIP LIKE 'MonIP', 'NATIONAL', Clients.Ordinateur ) AS 'Ordinateur_Clients',
Clients.EtatConnexion,
Clients.EtatClient,
IF( DNS.AdresseIP LIKE 'MonIP', 'NATIONAL', Clients.Domaine ),
IF( DNS.AdresseIP LIKE 'MonIP', 'NATIONAL', Ref.Gestionnaire ) AS 'Gestionnaire_Ref',
IF( DNS.AdresseIP LIKE 'MonIP', 'NATIONAL', Ref.NomDNSServeur )
FROM
t_Global_Serveurs AS Serveur
LEFT JOIN t_DNS_UA AS DNS ON Serveur.AdresseDNS LIKE CONCAT('http://', DNS.DNS, '.MonDomaine1:MonPort1/Supplement%')
LEFT JOIN t_Global_Clients AS Clients ON DNS.AdresseIP=Clients.AdresseIP
LEFT JOIN t_References AS Ref ON Clients.Serveur=Ref.NomServeur
WHERE
Serveur.AdresseDebutPlage NOT LIKE 'Update%'
AND Serveur.AdresseDNS NOT LIKE CONCAT('http://', DNS.DNS, '.MonDomaine2:MonPort2%')
ORDER BY
Serveur.Gestionnaire,
Serveur.Serveur,
Serveur.AdresseDNS,
Ref.Gestionnaire,
Ref.NomDNSServeur,
DNS.DNS; |
Partager