SELECT *
FROM EP_RS_MST
WHERE rs_mst_seq = :rs_mst_seq
AND use_yn = 'Y'
AND status = 'S'