'3' AND USE_YN = '1' AND CRDT_USE_YN ='1' AND ( TEL_NO LIKE '%' || TRIM(?) || '%' OR UPPER(CUST_NM) LIKE '%' || UPPER(TRIM(?)) || '%' OR CUST_ID LIKE '%' || TRIM(?) || '%' ) ]]> '3' AND CRDT_USE_YN ='1' AND USE_YN = '1' AND CUST_ID LIKE TRIM(?) || '%' ]]> '3' AND CRDT_USE_YN ='1' AND USE_YN = '1' AND TEL_NO LIKE '%' || TRIM(?) || '%' ]]> = ? THEN ? ELSE FIRST_TRADE_DT END ,FIRST_TRADE_STOR_CD = CASE WHEN FIRST_TRADE_DT IS NULL OR FIRST_TRADE_DT >= ? THEN FIRST_TRADE_STOR_CD ELSE FIRST_TRADE_STOR_CD END ,LAST_TRADE_DT = CASE WHEN LAST_TRADE_DT IS NULL OR LAST_TRADE_DT <= ? THEN ? ELSE LAST_TRADE_DT END ,LAST_TRADE_STOR_CD = CASE WHEN LAST_TRADE_DT IS NULL OR LAST_TRADE_DT <= ? THEN LAST_TRADE_STOR_CD ELSE LAST_TRADE_STOR_CD END ,UPD_DATE = SYSDATE WHERE 1 = 1 AND CMP_CD = ? AND STOR_CD = ? AND CUST_ID = ? ]]> = TO_CHAR(SYSDATE-30,'yyyyMMdd') ]]> = TO_CHAR(SYSDATE-3,'yyyyMMdd') AND W.FILE_DIV ='05' ]]> = TO_CHAR(SYSDATE-3,'yyyyMMdd') AND W.FILE_DIV ='06' ]]> 0 ]]> = TO_CHAR(SYSDATE-3,'yyyyMMdd') AND W.FILE_DIV ='07' ]]> '1' AND A.CANCEL_YN <> '1' ORDER BY A.GIF_NO,B.GIF_FACE_AMT ]]> '1' AND A.CANCEL_YN <> '1' ORDER BY A.GIF_NO,B.GIF_FACE_AMT ]]> 0 ORDER BY NVL(B.M_CLASS_CD, '99999'), B.ITEM_CD ]]>