SELECT MB.MCode, MB.MName, COUNT(DISTINCT ItemCode) FROM TB_Member MB, TB_StudyPlan SP WHERE MB.TCode = ? AND MB.ACode = ? AND SP.MCode = MB.MCode AND MB.MCode > 0 AND MB.IsActive = 1 AND SP.StudyPlanYMD Between ? AND ? ;
SELECT MB.MCode, MB.MName, COUNT(DISTINCT ItemCode) FROM TB_Member MB, TB_StudyPlan SP WHERE MB.TCode = ? AND MB.ACode = ? AND SP.MCode = MB.MCode AND MB.MCode > 0 AND MB.IsActive = 1 AND SP.StudyPlanYMD Between ? AND ? ;
:set paste
SELECT MB.MCode, MB.MName, COUNT(DISTINCT ItemCode) FROM TB_Member MB, TB_StudyPlan SP WHERE MB.TCode = ? AND MB.ACode = ? AND SP.MCode = MB.MCode AND MB.MCode > 0 AND MB.IsActive = 1 AND SP.StudyPlanYMD Between ? AND ? ;
:s/{변환전문자}/{변환된문자}/
:s/aaa/bbb/
:s/{변환전문자}/{변환된문자}/g
:s/ccc/ddd/g
:'<,'>_
'<,'>s/^/.append(" /
'<,'>s/^/\t\t\t.append(" /
:'<,'>_
'<,'>s/$/")/
StringBuffer SQL = new StringBuffer() .append(" SELECT /* study/dao/readNoStudyMemberList */ MB.MCODE AS MCODE, MB.MNAME AS MNAME ") .append(" FROM TB_MEMBER MB LEFT JOIN TB_STUDYPLAN ST ") .append(" ON MB.MCODE = ST.MCODE AND ST.STUDYPLANYMD >= TO_CHAR(SYSDATE, 'YYYY-MM-DD') ") .append(" WHERE MB.TCODE = ? AND MB.ACODE = ? AND MB.ISACTIVE = 1 AND ST.MCODE IS NULL ");
'<,'>s/")//g