diff --git a/src/main/resources/sql/work/nims_work.sql b/src/main/resources/sql/work/nims_work.sql index b1cd1ef..8a4c532 100644 --- a/src/main/resources/sql/work/nims_work.sql +++ b/src/main/resources/sql/work/nims_work.sql @@ -86,6 +86,22 @@ select * from tb_dsuse_rpt_info where use_yn = 'Y'; +select tdm.dscdmng_id + , tdm.user_id + , tdri.* + , tbi.rprsntv_nm + , tbi.prmisn_no + from tb_dsuse_mgt tdm + join tb_dsuse_rpt_info tdri + on (tdm.org_usr_rpt_id_no = tdri.org_usr_rpt_id_no + and tdm.usr_rpt_id_no = tdri.usr_rpt_id_no) + left outer join tb_bssh_info tbi + on tdri.bssh_cd = tbi.bssh_cd + + + + + WITH RECURSIVE temp (