select  顾客ID
from 销售订单表
group by 顾客ID
having sum(产品='ProductA')>0 and sum(产品='ProductB')>0 and sum(产品='ProductC')=0;