即使不存在也返回所有值/ null

时间:2017-04-18 12:22:29

标签: sql

我是SQL的新手,我正在尝试创建一个简单的报告。

SELECT DNSServer, DNSZone, ClientHostName, ForwardZoneIPAddress, ReverseZoneIPAddress
FROM IPAM.DNSMismatch
where DNSServer = 'DNSSERVERNAME'

DNSMismatch https://solarwinds.github.io/OrionSDK/schema/IPAM.DNSMismatch.html

这显示任何DNSMismatch,如下所示:

|DNSServer    |DNSZone  |ClientHostName          |ForwardZoneIPAddress|ReverseZoneIPAddress|
|DNSSERVERNAME|Zone.Com |MisMatchPC.Domain.com   |192.168.1.38        |192.168.1.39    | <-- Mismatch 

现在的问题是,如果ForwardZone存在但Reverse不存在/ null,它不会显示记录。

|DNSSERVERNAME|Zone.Com |IDoNotExistPC.Domain.com|192.168.1.40 |DOES NOT EXIST/NULL |

是否可以轻松显示所有值,即使它们为空?

0 个答案:

没有答案
相关问题