我正在尝试创建一个不包括连接的视图:
但是有一个冒号,我也想在 WHERE 上做一个。在这种情况下,它:
WHERE table.colon != 'x';
出于这个原因,我尝试过:
WHERE A.key IS NULL AND table.colon != 'x';
但是当我运行它时,运行它时没有显示任何数据。谁能帮我解决这个问题?
先谢谢了。
更新,这是我要运行的查询:
SELECT dbo.DimServere.Servernavn, dbo.DimServere.Serverstatus, dbo.IderaPatchAnalyzer.IP_Adresse, dbo.IderaPatchAnalyzer.Release_, dbo.IderaPatchAnalyzer.Level_,
dbo.IderaPatchAnalyzer.Edition_, dbo.IderaPatchAnalyzer.Build, dbo.IderaPatchAnalyzer.Updates_Available, dbo.IderaPatchAnalyzer.Supported_,
dbo.IderaPatchAnalyzer.Support_Status
FROM dbo.DimServere RIGHT OUTER JOIN
dbo.IderaPatchAnalyzer ON dbo.DimServere.TcpIpAddress = dbo.IderaPatchAnalyzer.IP_Adresse AND dbo.DimServere.Serverstatus <> 'Disposed/Retired'
WHERE (dbo.DimServere.TcpIpAddress IS NULL)