我有下面的查詢但是我不確定如何返回沒有標誌屬性的值。我想type.Property <> 'Flag'
但是沒有返回結果,即便是有一些不具有標誌屬性Microsoft Access SQL查詢不存在的屬性
SELECT DISTINCT o.ea_guid as CLASSGUID, o.Object_Type as CLASSTYPE, o.name as Name
FROM ((t_object as o
INNER JOIN t_objectproperties as location
ON o.Object_ID = location.Object_ID)
INNER JOIN t_objectproperties as type
ON o.Object_ID = type.Object_ID)
WHERE location.Property = 'Location'
AND location.Value = 'Queens'
AND type.Property = 'Flag'
ORDER BY o.name ASC
你可能會與type.Property行IS NULL列是否允許空值。 – NoChance
@Emmad Kareem - 它試過,但是沒有奏效 – PeanutsMonkey
從WHERE開始測試。看看你有什麼價值。通過指定Select * from ... Where(Type.Property不是null和type.Property ='Flag')和location.Value ='Queens'和location.Property ='Location' – NoChance