|
|
|
@ -36,6 +36,24 @@ select MIN(dscdmng_id) AS dscdmngId,
|
|
|
|
|
dsuse_de
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
select tdm.dscdmng_id
|
|
|
|
|
, tdm.dsuse_mth_cd
|
|
|
|
|
, tdm.dsuse_de
|
|
|
|
|
, tf.FILE_ID
|
|
|
|
|
-- , tf.FILE_NM
|
|
|
|
|
-- , IF(tf.FILE_ID IS NULL, 'Y', 'N') AS ins_yn
|
|
|
|
|
-- , IFNULL(tf.FILE_ID, 'N') AS ins_yn
|
|
|
|
|
from tb_dsuse_mgt tdm
|
|
|
|
|
LEFT JOIN tb_file tf
|
|
|
|
|
ON tdm.dscdmng_id = tf.inf_key
|
|
|
|
|
AND tf.INF_TYPE = '110'
|
|
|
|
|
WHERE tdm.use_yn = 'Y'
|
|
|
|
|
AND tdm.dept_cd = '4050149'
|
|
|
|
|
AND tdm.dsuse_mth_cd = '3'
|
|
|
|
|
AND tdm.dsuse_de = '20240709'
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
select MIN(dscdmng_id) AS dscdmngId,
|
|
|
|
|
dsuse_mth_cd,
|
|
|
|
|
dsuse_de,
|
|
|
|
|