권한코드 자리수는 1자리 라고 가정.
WITH emp AS ( SELECT '사원1' empno, '1,2' v UNION ALL SELECT '사원2', '0,9' ) , doc AS ( SELECT '문서1' docno, '0,1,2,9' v UNION ALL SELECT '문서2', '0,1,2' UNION ALL SELECT '문서3', '0,1,3' UNION ALL SELECT '문서4', '0,2' UNION ALL SELECT '문서5', '0,3' ) SELECT * FROM emp e INNER JOIN doc d ON d.v LIKE CONCAT('%[', REPLACE(e.v, ',', ''), ']%') WHERE e.empno = '사원1' ;