diff --git a/src/main/resources/egovframework/sqlmap/ve/edu/VEEdu_MIX_SQL_Cubrid.xml b/src/main/resources/egovframework/sqlmap/ve/edu/VEEdu_MIX_SQL_Cubrid.xml index f47d69c8..bfe91c2d 100644 --- a/src/main/resources/egovframework/sqlmap/ve/edu/VEEdu_MIX_SQL_Cubrid.xml +++ b/src/main/resources/egovframework/sqlmap/ve/edu/VEEdu_MIX_SQL_Cubrid.xml @@ -1355,7 +1355,23 @@ AND b.edu_chasi_ord = f.edu_chasi_ord ) + /* LEFT OUTER JOIN ve_acmdt_aplct g + */ + + LEFT OUTER JOIN ( + SELECT B00.* + FROM ( + SELECT edu_aplct_ord, edu_chasi_ord, MAX(acmdt_aplct_ord) acmdt_aplct_ord + FROM ve_acmdt_aplct + GROUP BY edu_aplct_ord, edu_chasi_ord + )A00 + , ve_acmdt_aplct B00 + WHERE a00.edu_aplct_ord=b00.edu_aplct_ord + AND a00.edu_chasi_ord=b00.edu_chasi_ord + AND a00.acmdt_aplct_ord=b00.acmdt_aplct_ord + ) g + ON ( b.edu_aplct_ord=g.edu_aplct_ord AND b.edu_chasi_ord=g.edu_chasi_ord ) @@ -1871,7 +1887,23 @@ AND b.edu_chasi_ord = f.edu_chasi_ord ) + /* LEFT OUTER JOIN ve_acmdt_aplct g + */ + + LEFT OUTER JOIN ( + SELECT B00.* + FROM ( + SELECT edu_aplct_ord, edu_chasi_ord, MAX(acmdt_aplct_ord) acmdt_aplct_ord + FROM ve_acmdt_aplct + GROUP BY edu_aplct_ord, edu_chasi_ord + )A00 + , ve_acmdt_aplct B00 + WHERE a00.edu_aplct_ord=b00.edu_aplct_ord + AND a00.edu_chasi_ord=b00.edu_chasi_ord + AND a00.acmdt_aplct_ord=b00.acmdt_aplct_ord + ) g + ON ( b.edu_aplct_ord=g.edu_aplct_ord AND b.edu_chasi_ord=g.edu_chasi_ord )