0
我試圖檢索所有符合以下條件的ID:在具體的街道 返回無效
- 生活有兩個電話號碼
- 已作出命令
- 是女性
select id from Customer
join Address on Address.customer_id = Customer.id
join Orders on Orders.customer_id = Customer.id
join Gender on Gender.customer_id = Customer.id
join Telephone on Telephone.customer_id = Customer.id
where Address.street_name ='MainStreet'
and Orders.customer_id is not null
and Gender.gender ='Female'
group by Telephone.customer_id
having count(Telephone.customer_id) = 2
當我運行此,I R eceive「列或表達式無效」 當我通過並刪除組時,它可以正常工作。
有人可以幫我這個嗎?
是這個工作!非常感謝! – user3197745