원래 쿼리 ) SELECT DATE_FORMAT(CONCAT(JOB_DATE,JOB_TIME),'%Y-%m-%d %H:%i:%s') AS collect_date , CAPACITY_ID , B.pattern_code_name AS CAPACITY_NAME , CAPACITY_SUB_ID, , B2.pattern_code_name AS CAPACITY_SUB_NAME FROM tb_data A, tb_common_code B, tb_common_code B2 WHERE 1=1 AND job_date >= "20120827" AND job_date = "20120827000000" AND CONCAT(job_date,job_time) < "20120828000000" AND job_time '' AND A...