您好,我有一个查询返回计算机名称及其相应的 IP 地址,如下所示:
SELECT DISTINCT TOP (100) PERCENT dbo.Inv_AeX_AC_TCPIP.[IP Address],
dbo.Inv_AeX_AC_TCPIP.[Host Name]
FROM dbo.Inv_AeX_AC_Identification
INNER JOIN dbo.Inv_AeX_AC_TCPIP
ON dbo.Inv_AeX_AC_Identification._ResourceGuid = dbo.Inv_AeX_AC_TCPIP._ResourceGuid
这将返回结果,例如:
Computer: IP:
Frank's Computer 10.0.0.1
Frank's Computer 10.0.0.3
Nick's Computer 10.0.1.0
是否可以只返回第一个“弗兰克的电脑”行,而排除另一行?
谢谢!