유니언 쿼리를 카운트하는 방법 다음 질문이 있습니다. select distinct profile_id from userprofile_... union select distinct profile_id from productions_... 총 결과 수를 어떻게 알 수 있습니까?모든 레코드의 합계 카운트를 필요로 하는 경우는, 다음과 같이 실시합니다. SELECT COUNT(*) FROM ( select distinct profile_id from userprofile_... union all select distinct profile_id from productions_... ) x 를 사용해야 합니다.Union All두 표에 동일한 행이 있는 경우 유니언은 구별을 하기 때문에 select count(*) ..