我想運行一個像這樣的選擇。選擇不同的WHERE條件
SELECT
COUNT(*) WHERE switch=0 AND detail=1 AS zeroone
AND
COUNT(*) WHERE switch=0 AND detail=2 AS zerotwo
AND
COUNT(*) WHERE switch=1 AND detail=1 AS oneone
AND
COUNT(*) WHERE swithc=1 AND detail=2 AS onetwo
FROM tablename
有沒有辦法做到這一點?