下面是在 SQL server 2008 上正常运行的 SQL。
SELECT ITEM_NO
FROM
PROPERTY_VALUES
WHERE
(PROPERTY_NAME ='Fax' AND PROPERTY_VALUE = '123-123-123')
INTERSECT
SELECT ITEM_NO
FROM
PROPERTY_VALUES
WHERE
(PROPERTY_NAME ='Email' AND PROPERTY_VALUE = 'testemail@gmail.com')
INTERSECT
SELECT ITEM_NO
FROM
PROPERTY_VALUES
WHERE
(PROPERTY_NAME ='Mobile' AND PROPERTY_VALUE = '9844808631')