SQL サブクエリの入れ子のサブクエリ ここまでできます。

必要に迫られて、Case When 内に サブクエリをいれてみました。

備忘でここに記します。

-----------------------------------

,case when Cnt = (select count(distinct(Place)) PlaceCnt from [dbo].   
  [Table_xxxx] where InspstepsID = A.InspstepsID and InspBlockIdx =   0) then 1 else 0 end Num OK
-----------------------------------