Exists 하고 In

less than 1 minute read

exists

select 컬럼들 from 테이블 a
where exists( select 컬럼들 from 테이블 b where b.컬럼 = a.컬럼 ) // 서브쿼리 조인포함
이렇게 썼음.
앞에 있는 select절에 있는 from의 테이블과 조인한 서브쿼리가 괄호 안에 들어갔음.

in

where 컬럼 in( 조인 없는 서브쿼리 )
이렇게 썼음

Updated: