0
and area.ID in (ISNULL(@area, (select ID from Areas where AreaTypeId = 3)))
where 조건에서 where 영역의 정보를 얻기 위해 @area 매개 변수를 사용하지만 사용자가 모든 영역에 대한 모든 영역 정보를 인터럽트하지 않은 경우 나타날거야. 하지만 난 쿼리를 실행할 때 오류 메시지가 나타날 있습니다SQL Server에서 둘 이상의 값을 반환하는 방법 isnull 함수
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
이 친절하게 도와를 경우 할 수 있습니다