굳이 쓴다면 이정도 되겠지만 별로 좋아 보이지는 않네요...ㅠ.ㅠ
WITH T(CODE) AS ( SELECT 'JH000000' FROM DUAL UNION ALL SELECT 'JH100000' FROM DUAL UNION ALL SELECT 'JH280000' FROM DUAL UNION ALL SELECT 'JH330000' FROM DUAL UNION ALL SELECT 'JH400000' FROM DUAL UNION ALL SELECT 'JH420000' FROM DUAL UNION ALL SELECT 'JH440000' FROM DUAL UNION ALL SELECT 'JH510000' FROM DUAL UNION ALL SELECT 'JH670000' FROM DUAL UNION ALL SELECT 'JH760000' FROM DUAL ) SELECT * FROM T WHERE REGEXP_LIKE(CODE, 'JH[1-3]{1}[0-9]{1}+') OR REGEXP_LIKE(CODE, 'JH[4]{1}[0-2]{1}+')