You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
쿼리문 개선안 드립니당... 서브쿼리는 성능이 좋지 않아 왠만하면 조인을 이용하는게 좋다고 알고 있어서 조인을 쓰시는 버전은 어떤지 봐주세요 이 쿼리로는 for each 돌필요없이 result set에서 바로 equal 비교 가능합니당
select count(*) as count, tj.max from team_job tj left join team_user_job tuj on tuj.team_job_id = tj.team_job_id and tuj.status = 'APPROVED' where tj.team_id = 20 and tj.name = '아이패드' group by tj.max;
where절에 tj.team_id랑 tj.name을 param으로 채우시면 되용
select count(*) as count, tj.max from team_job tj left join team_user_job tuj on tuj.team_job_id = tj.team_job_id and tuj.status = 'APPROVED' where tj.team_id = 20 and tj.name = '아이패드' group by tj.max;
where절에 tj.team_id랑 tj.name을 param으로 채우시면 되용
Originally posted by @sinryuji in #836 (review)
The text was updated successfully, but these errors were encountered: