0
一個專欄中,我想限制爲count(rm_ca) as office
列的結果是rm_ca ='1'
我不能投入where
條款這是我不希望限制其他領域。只有那一列。如何才能做到這一點?SQL限制選擇查詢
SELECT count(distinct bl) as bld,
count(rm) as rooms,
sum(area) as total_area,
count(rm_ca) as office
FROM table
WHERE dp= '345';